Merge pull request #2561 from vuvanhieu143/MOBILE-3569_intergration
MOBILE-3569 resource: Allow IFRAME to use XHTML
This commit is contained in:
		
						commit
						a948e4b07b
					
				@ -142,7 +142,7 @@ export class AddonModResourceHelperProvider {
 | 
			
		||||
            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.
 | 
			
		||||
        var el = event.target;
 | 
			
		||||
        while (el && el.tagName !== 'A') {
 | 
			
		||||
        while (el && (el.tagName !== 'A' && el.tagName !== 'a')) {
 | 
			
		||||
            el = el.parentElement;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user