package js.html; typedef ParentNode = { final childElementCount : Float; /** Returns the child elements. **/ final children : js.html.HTMLCollection; /** Returns the first child that is an element, and null otherwise. **/ final firstElementChild : Null; /** Returns the last child that is an element, and null otherwise. **/ final lastElementChild : Null; /** Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. **/ function append(nodes:haxe.extern.Rest>):Void; /** Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes. Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated. **/ function prepend(nodes:haxe.extern.Rest>):Void; /** Returns the first element that is a descendant of node that matches selectors. **/ @:overload(function(selectors:K):Null { }) @:overload(function(selectors:String):Null { }) function querySelector(selectors:K):Null; /** Returns all element descendants of node that match selectors. **/ @:overload(function(selectors:K):NodeListOf { }) @:overload(function(selectors:String):NodeListOf { }) function querySelectorAll(selectors:K):NodeListOf; };