[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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12299

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