mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Annotate many DOM attribute and methods with [Constant] and [Pure]
This commit is contained in:
parent
4dbf391e83
commit
49219baab8
18 changed files with 69 additions and 14 deletions
|
@ -5,9 +5,13 @@
|
|||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue