Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit a0aba06

Browse files
committed
Enhance DOM.HTML a bit, fix getElementById again
1 parent 6b3d225 commit a0aba06

File tree

9 files changed

+236
-116
lines changed

9 files changed

+236
-116
lines changed

docs/DOM/Event/Types.md

+50-50
Large diffs are not rendered by default.

docs/DOM/HTML/Types.md

+40
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,58 @@ windowToEventTarget :: Window -> EventTarget
1818
data HTMLDocument :: *
1919
```
2020

21+
##### Instances
22+
``` purescript
23+
instance isForeignHTMLDocument :: IsForeign HTMLDocument
24+
```
25+
2126
#### `htmlDocumentToDocument`
2227

2328
``` purescript
2429
htmlDocumentToDocument :: HTMLDocument -> Document
2530
```
2631

32+
#### `htmlDocumentToNonElementParentNode`
33+
34+
``` purescript
35+
htmlDocumentToNonElementParentNode :: HTMLDocument -> NonElementParentNode
36+
```
37+
38+
#### `htmlDocumentToParentNode`
39+
40+
``` purescript
41+
htmlDocumentToParentNode :: HTMLDocument -> ParentNode
42+
```
43+
44+
#### `htmlDocumentToNode`
45+
46+
``` purescript
47+
htmlDocumentToNode :: HTMLDocument -> Node
48+
```
49+
2750
#### `htmlDocumentToEventTarget`
2851

2952
``` purescript
3053
htmlDocumentToEventTarget :: HTMLDocument -> EventTarget
3154
```
3255

56+
#### `readHTMLDocument`
57+
58+
``` purescript
59+
readHTMLDocument :: Foreign -> F HTMLDocument
60+
```
61+
3362
#### `HTMLElement`
3463

3564
``` purescript
3665
data HTMLElement :: *
3766
```
3867

68+
##### Instances
69+
``` purescript
70+
instance isForeignHTMLElement :: IsForeign HTMLElement
71+
```
72+
3973
#### `htmlElementToElement`
4074

4175
``` purescript
@@ -66,4 +100,10 @@ htmlElementToNode :: HTMLElement -> Node
66100
htmlElementToEventTarget :: HTMLElement -> EventTarget
67101
```
68102

103+
#### `readHTMLElement`
104+
105+
``` purescript
106+
readHTMLElement :: Foreign -> F HTMLElement
107+
```
108+
69109

docs/DOM/Node/Types.md

+12
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ documentToParentNode :: Document -> ParentNode
6666
documentToNode :: Document -> Node
6767
```
6868

69+
#### `documentToEventTarget`
70+
71+
``` purescript
72+
documentToEventTarget :: Document -> EventTarget
73+
```
74+
6975
#### `Element`
7076

7177
``` purescript
@@ -97,6 +103,12 @@ elementToNonDocumentTypeChildNode :: Element -> NonDocumentTypeChildNode
97103
elementToNode :: Element -> Node
98104
```
99105

106+
#### `elementToEventTarget`
107+
108+
``` purescript
109+
elementToEventTarget :: Element -> EventTarget
110+
```
111+
100112
#### `CharacterData`
101113

102114
``` purescript

0 commit comments

Comments
 (0)