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 10:32:21 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Pz54X-0000mc-OR@jessica.w3.org>

James Graham <jgraham@opera.com> changed:

           What    |Removed                     |Added
                 CC|                            |cam@mcc.id.au,
                   |                            |jgraham@opera.com
            Summary|The (normative and          |The (normative and
                   |non-normative) assertion    |non-normative) assertion
                   |that tokenlist.item(index)  |that tokenlist.item(index)
                   |/ tokenlist[index] returns  |/ tokenlist[index] returns
                   |null for index>=length      |null for index>=length
                   |appears to be in conflict   |appears to be in conflict
                   |with WebIDL                 |with WebIDL, at least for
                   |                            |the index property case;
                   |                            |afaict WebIDL requires that
                   |                            |index property getters
                   |                            |throw
            Summary|at least for the index      |
                   |property case; afaict       |
                   |WebIDL requires that index  |
                   |property getters throw      |

--- Comment #1 from James Graham <jgraham@opera.com> 2011-03-14 10:32:21 UTC ---
Actually I think I might be wrong on what WebIDL requires; since corresponding
properties for indexes outside the range are never created, trying to access
such properties it will return undefined except in strict mode. Nevertheless
the specs are inconsistent here.

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 10:32:26 UTC

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