mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +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
|
@ -9,15 +9,24 @@
|
|||
*/
|
||||
|
||||
interface Attr {
|
||||
[Constant]
|
||||
readonly attribute DOMString? namespaceURI;
|
||||
[Constant]
|
||||
readonly attribute DOMString? prefix;
|
||||
[Constant]
|
||||
readonly attribute DOMString localName;
|
||||
[Constant]
|
||||
readonly attribute DOMString name;
|
||||
[Pure]
|
||||
attribute DOMString value;
|
||||
[Pure]
|
||||
attribute DOMString textContent; // alias of .value
|
||||
[Pure]
|
||||
attribute DOMString nodeValue; // alias of .value
|
||||
|
||||
[Pure]
|
||||
readonly attribute Element? ownerElement;
|
||||
|
||||
[Constant]
|
||||
readonly attribute boolean specified; // useless; always returns true
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue