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

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 UTC