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

[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

From: <bugzilla@jessica.w3.org>
Date: Mon, 14 Mar 2011 10:26:53 +0000
To: public-html@w3.org
Message-ID: <bug-12299-2495@http.www.w3.org/Bugs/Public/>
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 on the CC list for the bug.
Received on Monday, 14 March 2011 10:26:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:26 GMT