ParentNode.webidl (1502B)
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 4 * You can obtain one at http://mozilla.org/MPL/2.0/. 5 * 6 * The origin of this IDL file is 7 * http://dom.spec.whatwg.org/#interface-parentnode 8 */ 9 10 interface mixin ParentNode { 11 [Constant] 12 readonly attribute HTMLCollection children; 13 [Pure] 14 readonly attribute Element? firstElementChild; 15 [Pure] 16 readonly attribute Element? lastElementChild; 17 [Pure] 18 readonly attribute unsigned long childElementCount; 19 20 [ChromeOnly] 21 HTMLCollection getElementsByAttribute(DOMString name, 22 [LegacyNullToEmptyString] DOMString value); 23 [ChromeOnly, Throws] 24 HTMLCollection getElementsByAttributeNS(DOMString? namespaceURI, DOMString name, 25 [LegacyNullToEmptyString] DOMString value); 26 27 [CEReactions, Throws, Unscopable] 28 undefined prepend((Node or DOMString)... nodes); 29 [CEReactions, Throws, Unscopable] 30 undefined append((Node or DOMString)... nodes); 31 [CEReactions, Throws, Unscopable] 32 undefined replaceChildren((Node or DOMString)... nodes); 33 34 [CEReactions, Throws, Pref="dom.movebefore.enabled"] 35 undefined moveBefore(Node node, Node? child); 36 37 [Throws, Pure] 38 Element? querySelector(UTF8String selectors); 39 [Throws, Pure] 40 NodeList querySelectorAll(UTF8String selectors); 41 };