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, 3 insertions, 3 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index e8fa0071..b883fd42 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -169,7 +169,7 @@ type
 
   Document* = ref object of Node
     charset*: Charset
-    window*: Window
+    window* {.jsget: "defaultView".}: Window
     url* {.jsget: "URL".}: URL
     mode*: QuirksMode
     currentScript: HTMLScriptElement
@@ -1550,13 +1550,13 @@ func html*(document: Document): HTMLElement =
   for element in document.elements(TAG_HTML):
     return HTMLElement(element)
 
-func head*(document: Document): HTMLElement =
+func head*(document: Document): HTMLElement {.jsfget.} =
   let html = document.html
   if html != nil:
     for element in html.elements(TAG_HEAD):
       return HTMLElement(element)
 
-func body*(document: Document): HTMLElement =
+func body*(document: Document): HTMLElement {.jsfget.} =
   let html = document.html
   if html != nil:
     for element in html.elements(TAG_BODY):
kartik/mu/commit/subx/061error.subx?h=main&id=0eb0f69616bb928359aed5ec137c973b14b03788'>0eb0f696 ^
33352536 ^

0eb0f696 ^


33352536 ^
a9d473e2 ^
0eb0f696 ^

33352536 ^
0eb0f696 ^


33352536 ^
0eb0f696 ^


33352536 ^
0eb0f696 ^


cf02c20b ^
7a583220 ^
33352536 ^

0eb0f696 ^
7cb326df ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50