Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(697)

Unified Diff: Source/core/dom/Document.idl

Issue 1163923006: Sync Document.readyState with the HTML spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.idl
diff --git a/Source/core/dom/Document.idl b/Source/core/dom/Document.idl
index 9efcd84b9a382f29a48fae4cf0994798d21b0d1a..7f2e9b3e6bdafb90dd33698402ed891fd790a7a6 100644
--- a/Source/core/dom/Document.idl
+++ b/Source/core/dom/Document.idl
@@ -22,6 +22,9 @@ callback CustomElementConstructor = Element ();
typedef (CanvasRenderingContext2D or WebGLRenderingContext) RenderingContext;
+// https://html.spec.whatwg.org/#the-document-object
+enum DocumentReadyState { "loading", "interactive", "complete" };
+
// http://www.w3.org/TR/page-visibility/#VisibilityState
enum VisibilityState { "hidden", "visible", "prerender", "unloaded" };
@@ -88,9 +91,7 @@ interface Document : Node {
// FIXME: cookie should not have [TreatNullAs=NullString].
[TreatNullAs=NullString, RaisesException] attribute DOMString cookie;
readonly attribute DOMString lastModified;
- // FIXME: readyState should use the enum DocumentReadyState.
- // FIXME: readyState should not have [TreatReturnedNullStringAs=Undefined].
- [TreatReturnedNullStringAs=Undefined] readonly attribute DOMString readyState;
+ readonly attribute DocumentReadyState readyState;
// DOM tree accessors
// FIXME: title and dir should not have [TreatNullAs=NullString].
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698