OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 ImplementedAs=ContainerNode, | 6 ImplementedAs=ContainerNode, |
7 ] interface ParentNode : Node { | 7 ] interface ParentNode : Node { |
8 readonly attribute Node firstChild; | 8 readonly attribute Node firstChild; |
9 readonly attribute Node lastChild; | 9 readonly attribute Node lastChild; |
10 readonly attribute Element firstElementChild; | 10 readonly attribute Element firstElementChild; |
11 readonly attribute Element lastElementChild; | 11 readonly attribute Element lastElementChild; |
12 | 12 |
13 sequence<Node> getChildNodes(); | 13 sequence<Node> getChildNodes(); |
14 sequence<Element> getChildElements(); | 14 sequence<Element> getChildElements(); |
15 | 15 |
16 [CustomElementCallbacks, RaisesException] void append(sequence<Node> nodes); | 16 [CustomElementCallbacks, RaisesException] void append(sequence<Node> nodes); |
17 [CustomElementCallbacks, RaisesException] Node appendChild(Node nodes); | 17 [CustomElementCallbacks, RaisesException] Node appendChild(Node node); |
18 [CustomElementCallbacks, RaisesException] void prepend(sequence<Node> nodes); | 18 [CustomElementCallbacks, RaisesException] void prepend(sequence<Node> nodes); |
19 [CustomElementCallbacks, RaisesException] Node prependChild(Node nodes); | 19 [CustomElementCallbacks, RaisesException] Node prependChild(Node node); |
20 | 20 |
21 [CustomElementCallbacks] void removeChildren(); | 21 [CustomElementCallbacks] void removeChildren(); |
22 [CustomElementCallbacks, RaisesException] Node setChild(Node node); | 22 [CustomElementCallbacks, RaisesException] Node setChild(Node node); |
23 [CustomElementCallbacks, RaisesException] void setChildren(sequence<Node> node
s); | 23 [CustomElementCallbacks, RaisesException] void setChildren(sequence<Node> node
s); |
24 | 24 |
25 // TODO(abarth): Remove when we have the selector object. | 25 // TODO(abarth): Remove when we have the selector object. |
26 [RaisesException] Element querySelector(DOMString selectors); | 26 [RaisesException] Element querySelector(DOMString selectors); |
27 [RaisesException] sequence<Element> querySelectorAll(DOMString selectors); | 27 [RaisesException] sequence<Element> querySelectorAll(DOMString selectors); |
28 }; | 28 }; |
OLD | NEW |