fix(dom): remove methods is allowed on text nodes as well
Fixes #1473 Closes #1478
This commit is contained in:
		
							parent
							
								
									97e6fb6835
								
							
						
					
					
						commit
						e70a2f21dd
					
				| @ -157,7 +157,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter { | |||||||
|   void replaceChild(Node el, Node newNode, Node oldNode) { |   void replaceChild(Node el, Node newNode, Node oldNode) { | ||||||
|     oldNode.replaceWith(newNode); |     oldNode.replaceWith(newNode); | ||||||
|   } |   } | ||||||
|   Element remove(Element el) { |   ChildNode remove(ChildNode el) { | ||||||
|     return el..remove(); |     return el..remove(); | ||||||
|   } |   } | ||||||
|   void insertBefore(Node el, node) { |   void insertBefore(Node el, node) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user