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/HTMLCollection.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/HTMLCollection.webidl')
-rw-r--r-- | components/script/dom/webidls/HTMLCollection.webidl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/webidls/HTMLCollection.webidl b/components/script/dom/webidls/HTMLCollection.webidl index d244ba5e9b1..02bcea6ccae 100644 --- a/components/script/dom/webidls/HTMLCollection.webidl +++ b/components/script/dom/webidls/HTMLCollection.webidl @@ -6,7 +6,10 @@ // https://dom.spec.whatwg.org/#interface-htmlcollection interface HTMLCollection { + [Pure] readonly attribute unsigned long length; + [Pure] getter Element? item(unsigned long index); + [Pure] getter Element? namedItem(DOMString name); }; |