// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. [ ImplementedAs=ContainerNode, ] interface ParentNode : Node { readonly attribute Node firstChild; readonly attribute Node lastChild; readonly attribute Element firstElementChild; readonly attribute Element lastElementChild; sequence getChildNodes(); sequence getChildElements(); [CustomElementCallbacks, RaisesException] void append(sequence nodes); [CustomElementCallbacks, RaisesException] Node appendChild(Node node); [CustomElementCallbacks, RaisesException] void prepend(sequence nodes); [CustomElementCallbacks, RaisesException] Node prependChild(Node node); [CustomElementCallbacks] void removeChildren(); [CustomElementCallbacks, RaisesException] Node setChild(Node node); [CustomElementCallbacks, RaisesException] void setChildren(sequence nodes); // TODO(abarth): Remove when we have the selector object. [RaisesException] Element querySelector(DOMString selectors); [RaisesException] sequence querySelectorAll(DOMString selectors); };