Merge pull request #2561 from vuvanhieu143/MOBILE-3569_intergration
MOBILE-3569 resource: Allow IFRAME to use XHTMLmain
commit
a948e4b07b
|
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue