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 20013 - readyState should be an IDL enum
Summary: readyState should be an IDL enum
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-20 06:01 UTC by contributor
Modified: 2013-03-29 18:13 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-11-20 06:01:12 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html
Multipage: http://www.whatwg.org/C#the-document-object
Complete: http://www.whatwg.org/c#the-document-object

Comment:
readyState should be an IDL enum

Posted from: 173.48.81.109 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/19.0 Firefox/19.0
Comment 1 Boris Zbarsky 2012-11-20 06:01:52 UTC
It has a finite set of values; there's no reason to make it DOMString.
Comment 2 Ian 'Hixie' Hickson 2012-11-20 06:34:48 UTC
There's one reason. enum didn't exist when it was specced. :-)
Comment 3 Boris Zbarsky 2012-11-26 04:54:39 UTC
Well, so it's a bug in the spec and we can fix it.  ;)
Comment 4 contributor 2013-03-29 18:13:10 UTC
Checked in as WHATWG revision r7781.
Check-in comment: Make document.readyState explicitly an enum, not that that has any real effect.
http://html5.org/tools/web-apps-tracker?from=7780&to=7781