Files
tubestation/servo/components/script/dom/webidls/ParentNode.webidl
Anthony Ramine 2f12cba14d servo: Merge #11620 - Implement [Unscopable] (fixes #11583) (from nox:unscopable); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f56848a0e8a9137f128088d1dd0f86e11fad841a
2016-06-07 09:04:15 -05:00

30 lines
860 B
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://dom.spec.whatwg.org/#interface-parentnode
*/
[NoInterfaceObject]
interface ParentNode {
[SameObject]
readonly attribute HTMLCollection children;
[Pure]
readonly attribute Element? firstElementChild;
[Pure]
readonly attribute Element? lastElementChild;
[Pure]
readonly attribute unsigned long childElementCount;
[Throws, Unscopable]
void prepend((Node or DOMString)... nodes);
[Throws, Unscopable]
void append((Node or DOMString)... nodes);
[Pure, Throws]
Element? querySelector(DOMString selectors);
[NewObject, Throws]
NodeList querySelectorAll(DOMString selectors);
};