mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:17:36 +00:00
LibWeb: Implement ParentNode.prepend
`convert_nodes_to_single_node` is inside its own file so ChildNode can include and use it without having to include other headers such as DOM/Node.h. This is to prevent circular includes.
This commit is contained in:
parent
d7998c5dbd
commit
d5c96c3ccf
9 changed files with 92 additions and 2 deletions
|
@ -33,11 +33,13 @@ interface Element : Node {
|
|||
|
||||
[ImplementedAs=style_for_bindings] readonly attribute CSSStyleDeclaration style;
|
||||
|
||||
// FIXME: These should all come from a ParentNode mixin
|
||||
// FIXME: These should all come from a ParentNode mixin (up to and including children)
|
||||
readonly attribute Element? firstElementChild;
|
||||
readonly attribute Element? lastElementChild;
|
||||
readonly attribute unsigned long childElementCount;
|
||||
|
||||
[CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
|
||||
|
||||
Element? querySelector(DOMString selectors);
|
||||
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue