dom/webidl/ChildNode.webidl
author Boris Zbarsky <bzbarsky@mit.edu>
Tue, 29 Mar 2016 15:49:45 -0400
changeset 290960 483533fede8d48bcbd06a5541758c81af0c4385c
parent 154980 7a33656ad047bc2b5a1f169d8e746f4451c3a2ab
permissions -rw-r--r--
Bug 1104955 part 1. Add parsing for [Unscopeable] in IDL. r=khuey

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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
 * http://dom.spec.whatwg.org/#interface-childnode
 */

[NoInterfaceObject]
interface ChildNode {
// Not implemented yet:
//  [Unscopable]
//  void before((Node or DOMString)... nodes);
//  [Unscopable]
//  void after((Node or DOMString)... nodes);
//  [Unscopable]
//  void replace((Node or DOMString)... nodes);
  [Unscopable]
  void remove();
};

[NoInterfaceObject]
interface NonDocumentTypeChildNode {
  [Pure]
  readonly attribute Element? previousElementSibling;
  [Pure]
  readonly attribute Element? nextElementSibling;
};