MOBILE-3635 resource: Allow IFRAME to use XHTML
This commit is contained in:
		
							parent
							
								
									8f1ea5c3ef
								
							
						
					
					
						commit
						3bf1f7763b
					
				| @ -133,7 +133,7 @@ export class AddonModResourceHelperProvider { | ||||
|             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.
 | ||||
|             let el: Element | null = event.target as Element; | ||||
|             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