W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > March 2011

[Bug 12299] The (normative and non-normative) assertion that tokenlist.item(index) / tokenlist[index] returns null for index>=length appears to be in conflict with WebIDL, at least for the index property case; afaict WebIDL requires that index property getters throw

From: <bugzilla@jessica.w3.org>
Date: Mon, 14 Mar 2011 12:28:50 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pz6tG-0006pK-UX@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12299

Boris Zbarsky <bzbarsky@mit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bzbarsky@mit.edu

--- Comment #2 from Boris Zbarsky <bzbarsky@mit.edu> 2011-03-14 12:28:50 UTC ---
[index] needs to return undefined when out of range.

.item(index) can do whatever it wants to.

That's how nodelists already behave: .item() returns null, while [index]
returns undefined.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 14 March 2011 12:28:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 14 March 2011 12:28:53 GMT