Merge mozilla-central to autoland on a CLOSED TREE
[gecko.git] / dom / webidl / ParentNode.webidl
blob4350fb8a05130f07e8e57f3de0a0762db67c9609
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  */
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;
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);
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);