MOBILE-3635 resource: Allow IFRAME to use XHTML
parent
8f1ea5c3ef
commit
3bf1f7763b
|
@ -133,7 +133,7 @@ export class AddonModResourceHelperProvider {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return mimetype == 'text/html';
|
return mimetype == 'text/html' || mimetype == 'application/xhtml+xml';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -340,7 +340,7 @@ export class CoreIframeUtilsProvider {
|
||||||
|
|
||||||
// Find the link being clicked.
|
// Find the link being clicked.
|
||||||
let el: Element | null = event.target as Element;
|
let el: Element | null = event.target as Element;
|
||||||
while (el && el.tagName !== 'A') {
|
while (el && el.tagName !== 'A' && el.tagName !== 'a') {
|
||||||
el = el.parentElement;
|
el = el.parentElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue