Merge pull request #2561 from vuvanhieu143/MOBILE-3569_intergration

MOBILE-3569 resource: Allow IFRAME to use XHTML
main
Juan Leyva 2020-10-16 10:03:34 +02:00 committed by GitHub
commit a948e4b07b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ export class AddonModResourceHelperProvider {
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.
var el = event.target;
while (el && el.tagName !== 'A') {
while (el && (el.tagName !== 'A' && el.tagName !== 'a')) {
el = el.parentElement;
}

View File

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