MOBILE-3569 resource: Allow IFRAME to use XHTML

main
hieuvu 2020-10-14 10:05:28 +07:00
parent 8d95636690
commit e0413f8ebe
3 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ export class AddonModResourceHelperProvider {
mimetype = this.mimetypeUtils.getMimeType(ext); mimetype = this.mimetypeUtils.getMimeType(ext);
} }
return mimetype == 'text/html'; return mimetype == 'text/html' || mimetype == 'application/xhtml+xml';
} }
/** /**

View File

@ -49,7 +49,7 @@
// Find the link being clicked. // Find the link being clicked.
var el = event.target; var el = event.target;
while (el && el.tagName !== 'A') { while (el && (el.tagName !== 'A' && el.tagName !== 'a')) {
el = el.parentElement; el = el.parentElement;
} }

View File

@ -329,7 +329,7 @@ export class CoreIframeUtilsProvider {
// Find the link being clicked. // Find the link being clicked.
let el = <Element> event.target; let el = <Element> event.target;
while (el && el.tagName !== 'A') { while (el && el.tagName !== 'A' && el.tagName !== 'a') {
el = el.parentElement; el = el.parentElement;
} }