about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index a5aec266..941d3ce7 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -87,6 +87,11 @@ type
     of RESULT_IMPORT_MAP_PARSE:
       discard #TODO
 
+type DocumentReadyState* = enum
+  READY_STATE_LOADING = "loading"
+  READY_STATE_INTERACTIVE = "interactive"
+  READY_STATE_COMPLETE = "complete"
+
 type
   Location = ref object
     window: Window
@@ -176,6 +181,7 @@ type
     isxml*: bool
     implementation {.jsget.}: DOMImplementation
     origin: Origin
+    readyState* {.jsget.}: DocumentReadyState
 
     scriptsToExecSoon*: seq[HTMLScriptElement]
     scriptsToExecInOrder*: Deque[HTMLScriptElement]