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 13:48:57 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pz88n-0001vB-UE@jessica.w3.org>

--- Comment #5 from James Graham <jgraham@opera.com> 2011-03-14 13:48:57 UTC ---
Right, I think the spec is *confusing* but I no longer think it is wrong except
for the non-normative text which is very misleading about how out-of-bounds
index access will work.

I don't think it is worth trying to change the null/undefined thing; given the
subtlety of their distinction, any solution will feel wrong, so we may as well
just go for what is already implemented.

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 13:48:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:44 UTC