MOBILE-3635 resource: Allow IFRAME to use XHTML

main
Pau Ferrer Ocaña 2021-03-16 12:51:45 +01:00
parent 8f1ea5c3ef
commit 3bf1f7763b
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ export class AddonModResourceHelperProvider {
return false;
}
return mimetype == 'text/html';
return mimetype == 'text/html' || mimetype == 'application/xhtml+xml';
}
/**

View File

@ -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;
}