dom/webidl/MozNamedAttrMap.webidl
author Reuben Morais <reuben.morais@gmail.com>
Sun, 25 May 2014 15:31:11 -0300
changeset 192401 4136b65c1c4b1578631c18dfffff3cec2aa52b4e
parent 131472 9f7d1f298a2a30848385a004b2f9b06f67630e72
permissions -rw-r--r--
Bug 952486 - Use CheckPermissions instead of Func for several interfaces. r=bz

/* -*- 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/. */

/**
 * This is a temporary, non-standard interface, to ease the transition to a
 * world where Attr no longer inherits from Node.
 */
interface MozNamedAttrMap {
  getter Attr? getNamedItem(DOMString name);
  [Throws]
  Attr? setNamedItem(Attr arg);
  [Throws]
  Attr removeNamedItem(DOMString name);

  getter Attr? item(unsigned long index);
  readonly attribute unsigned long length;

  Attr? getNamedItemNS(DOMString? namespaceURI, DOMString localName);
  [Throws]
  Attr? setNamedItemNS(Attr arg);
  [Throws]
  Attr removeNamedItemNS(DOMString? namespaceURI, DOMString localName);
};