This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13376 - "Return whether [...]" doesn't cast to a boolean
Summary: "Return whether [...]" doesn't cast to a boolean
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 23:20 UTC by Ian 'Hixie' Hickson
Modified: 2011-07-31 08:57 UTC (History)
2 users (show)

See Also:


Attachments

Description Ian 'Hixie' Hickson 2011-07-26 23:20:34 UTC
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".