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/.
6 * The origin of this IDL file is
7 * http://dom.spec.whatwg.org/#interface-parentnode
10 interface mixin ParentNode {
12 readonly attribute HTMLCollection children;
14 readonly attribute Element? firstElementChild;
16 readonly attribute Element? lastElementChild;
18 readonly attribute unsigned long childElementCount;
21 HTMLCollection getElementsByAttribute(DOMString name,
22 [LegacyNullToEmptyString] DOMString value);
24 HTMLCollection getElementsByAttributeNS(DOMString? namespaceURI, DOMString name,
25 [LegacyNullToEmptyString] DOMString value);
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);