Index: core/dom/ParentNode.idl |
diff --git a/core/dom/ParentNode.idl b/core/dom/ParentNode.idl |
index dea4bfd282a91f388ebc0b4201a5acb7df7f38df..0f722e86b67d0f737e99a090b50e82f9c0818043 100644 |
--- a/core/dom/ParentNode.idl |
+++ b/core/dom/ParentNode.idl |
@@ -28,16 +28,22 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://dom.spec.whatwg.org/#interface-parentnode |
+ |
[ |
LegacyTreatAsPartialInterface, |
NoInterfaceObject, // Always used on target of 'implements' |
] interface ParentNode { |
- [PerWorldBindings] readonly attribute HTMLCollection children; |
- [PerWorldBindings] readonly attribute Element firstElementChild; |
- [PerWorldBindings] readonly attribute Element lastElementChild; |
+ [SameObject, PerWorldBindings] readonly attribute HTMLCollection children; |
+ [PerWorldBindings] readonly attribute Element? firstElementChild; |
+ [PerWorldBindings] readonly attribute Element? lastElementChild; |
readonly attribute unsigned long childElementCount; |
- // NodeSelector - Selector API |
- [RaisesException] Element querySelector(DOMString selectors); |
- [RaisesException] NodeList querySelectorAll(DOMString selectors); |
+ [Unscopeable, RaisesException, CustomElementCallbacks, RuntimeEnabled=DOMConvenienceAPI] void prepend((Node or DOMString)... nodes); |
+ [Unscopeable, RaisesException, CustomElementCallbacks, RuntimeEnabled=DOMConvenienceAPI] void append((Node or DOMString)... nodes); |
+ |
+ // [Unscopeable] Element? query(DOMString relativeSelectors); |
+ // [NewObject, Unscopeable] Elements queryAll(DOMString relativeSelectors); |
+ [RaisesException] Element? querySelector(DOMString selectors); |
+ [NewObject, RaisesException] NodeList querySelectorAll(DOMString selectors); |
}; |