W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2011

[Bug 13376] New: "Return whether [...]" doesn't cast to a boolean

From: <bugzilla@jessica.w3.org>
Date: Tue, 26 Jul 2011 23:20:35 +0000
To: www-dom@w3.org
Message-ID: <bug-13376-4009@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13376

           Summary: "Return whether [...]" doesn't cast to a boolean
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM Core
        AssignedTo: annevk@opera.com
        ReportedBy: ian@hixie.ch
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, www-dom@w3.org


DOMTokenList:

  4. Return whether token is a case-sensitive match for [...]

"It is" and "It is not" are not boolean values, so this doesn't define the
return value.

This is why the HTML spec said "return true if ... otherwise return false".

-- 
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 Tuesday, 26 July 2011 23:20:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:08 GMT