[Bug 12299] New: 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

           Summary: 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
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#dom
                    tokenlist-0
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


Specification:
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#domtokenlist-0

Comment:
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 Type Error for out or range values. It may be
possible per WebIDL to have .index and the index property getters do different
things, but that doesn't seem like super-useful behaviour. Possibly we should
throw in all cases.

Posted from: 88.131.66.80
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b13pre) Gecko/20110308
Firefox/4.0b13pre

-- 
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:26:55 UTC