Chromium Code Reviews| Index: Source/core/dom/ParentNode.idl |
| diff --git a/Source/core/dom/ParentNode.idl b/Source/core/dom/ParentNode.idl |
| index dea4bfd282a91f388ebc0b4201a5acb7df7f38df..e660f6c33f04458ec92704375e453308d81ea266 100644 |
| --- a/Source/core/dom/ParentNode.idl |
| +++ b/Source/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] void prepend((Node or DOMString)... nodes); |
| + // [Unscopeable] void append((Node or DOMString)... nodes); |
| + |
| + // [Unscopeable] Element? query(DOMString relativeSelectors); |
| + // [NewObject, Unscopeable] Elements queryAll(DOMString relativeSelectors); |
|
Jens Widell
2015/04/18 07:04:25
What is 'Elements'?
philipj_slow
2015/04/18 18:38:38
https://dom.spec.whatwg.org/#element-collections
|
| + [RaisesException] Element? querySelector(DOMString selectors); |
| + [NewObject, RaisesException] NodeList querySelectorAll(DOMString selectors); |
| }; |