diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-11 02:51:51 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-09-19 16:03:13 +0200 |
commit | 49219baab8fa67baba2383d50b0a4da84b2b9068 (patch) | |
tree | 1226a7ed6734089f7d133e943446120c2e5c2037 /components/script/dom/webidls/DOMTokenList.webidl | |
parent | 4dbf391e837652d8a509224e3a07f65d923fb9c2 (diff) | |
download | servo-49219baab8fa67baba2383d50b0a4da84b2b9068.tar.gz servo-49219baab8fa67baba2383d50b0a4da84b2b9068.zip |
Annotate many DOM attribute and methods with [Constant] and [Pure]
Diffstat (limited to 'components/script/dom/webidls/DOMTokenList.webidl')
-rw-r--r-- | components/script/dom/webidls/DOMTokenList.webidl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/webidls/DOMTokenList.webidl b/components/script/dom/webidls/DOMTokenList.webidl index 61a3bebff15..746bc8ac521 100644 --- a/components/script/dom/webidls/DOMTokenList.webidl +++ b/components/script/dom/webidls/DOMTokenList.webidl @@ -5,10 +5,12 @@ // https://dom.spec.whatwg.org/#domtokenlist interface DOMTokenList { + [Pure] readonly attribute unsigned long length; + [Pure] getter DOMString? item(unsigned long index); - [Throws] + [Pure, Throws] boolean contains(DOMString token); [Throws] void add(DOMString... tokens); |