Files
tubestation/servo/components/script/dom/webidls/NamedNodeMap.webidl
Mathieu Hordesseaux 8f51eece76 servo: Merge #9061 - Implement SetNamedItem and SetNamedItemNS (from mathieuh:setNameItem); r=eefriedman
@nox Can you add the "it needs tests" tag or so?

Source-Repo: https://github.com/servo/servo
Source-Revision: 55d4773311b7d15b5e1a7fc4b17047a51e097933
2016-01-28 16:36:41 +05:00

25 lines
739 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/. */
// https://dom.spec.whatwg.org/#interface-namednodemap
interface NamedNodeMap {
[Pure]
readonly attribute unsigned long length;
[Pure]
getter Attr? item(unsigned long index);
[Pure]
getter Attr? getNamedItem(DOMString name);
[Pure]
Attr? getNamedItemNS(DOMString? namespace, DOMString localName);
[Throws]
Attr? setNamedItem(Attr attr);
[Throws]
Attr? setNamedItemNS(Attr attr);
[Throws]
Attr removeNamedItem(DOMString name);
[Throws]
Attr removeNamedItemNS(DOMString? namespace, DOMString name);
};