diff --git a/src/addons/mod/resource/services/resource-helper.ts b/src/addons/mod/resource/services/resource-helper.ts index 33c37bfe7..48d170947 100644 --- a/src/addons/mod/resource/services/resource-helper.ts +++ b/src/addons/mod/resource/services/resource-helper.ts @@ -133,7 +133,7 @@ export class AddonModResourceHelperProvider { return false; } - return mimetype == 'text/html'; + return mimetype == 'text/html' || mimetype == 'application/xhtml+xml'; } /** diff --git a/src/core/services/utils/iframe.ts b/src/core/services/utils/iframe.ts index f14a84b34..064f24380 100644 --- a/src/core/services/utils/iframe.ts +++ b/src/core/services/utils/iframe.ts @@ -340,7 +340,7 @@ export class CoreIframeUtilsProvider { // Find the link being clicked. let el: Element | null = event.target as Element; - while (el && el.tagName !== 'A') { + while (el && el.tagName !== 'A' && el.tagName !== 'a') { el = el.parentElement; }