-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHTMLElement.js
240 lines (236 loc) · 10.1 KB
/
HTMLElement.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
const HTOTElement = HTMLElement.prototype
Object.defineProperty(HTOTElement.constructor, 'naam', {
get: function () { return this.name },
set: function (value) { this.name = value }
})
Object.defineProperty(HTOTElement.constructor, 'argumenten', {
get: function () { return this.arguments },
set: function (value) { this.arguments = value }
})
Object.defineProperty(HTOTElement.constructor, 'aanroeper', {
get: function () { return this.caller },
set: function (value) { this.caller = value }
})
HTOTElement.constructor.brengAan = HTOTElement.constructor.apply
HTOTElement.constructor.verbind = HTOTElement.constructor.bind
HTOTElement.constructor.roepAan = HTOTElement.constructor.call
HTOTElement.constructor.naarDraad = HTOTElement.constructor.toString
Object.defineProperty(HTOTElement, 'toegangsSleutel', {
get: function () { return this.accessKey },
set: function (value) { this.accessKey = value }
})
Object.defineProperty(HTOTElement, 'attributen', {
get: function () { return this.attributes },
set: function (value) { this.attributes = value }
})
Object.defineProperty(HTOTElement, 'kindElementAantal', {
get: function () { return this.childElementCount },
set: function (value) { this.childElementCount = value }
})
Object.defineProperty(HTOTElement, 'kindKnooppunten', {
get: function () { return this.childNodes },
set: function (value) { this.childNodes = value }
})
Object.defineProperty(HTOTElement, 'kinderen', {
get: function () { return this.children },
set: function (value) { this.children = value }
})
Object.defineProperty(HTOTElement, 'klassenLijst', {
get: function () { return this.classList },
set: function (value) { this.classList = value }
})
Object.defineProperty(HTOTElement, 'klasNaam', {
get: function () { return this.className },
set: function (value) { this.className = value }
})
Object.defineProperty(HTOTElement, 'cliëntHoogte', {
get: function () { return this.clientHeight },
set: function (value) { this.clientHeight = value }
})
Object.defineProperty(HTOTElement, 'cliëntLinks', {
get: function () { return this.clientLeft },
set: function (value) { this.clientLeft = value }
})
Object.defineProperty(HTOTElement, 'cliëntTop', {
get: function () { return this.clientTop },
set: function (value) { this.clientTop = value }
})
Object.defineProperty(HTOTElement, 'cliëntBreedte', {
get: function () { return this.clientWidth },
set: function (value) { this.clientWidth = value }
})
Object.defineProperty(HTOTElement, 'inhoudBewerkbaar', {
get: function () { return this.contentEditable },
set: function (value) { this.contentEditable = value }
})
Object.defineProperty(HTOTElement, 'richting', {
get: function () { return this.dir },
set: function (value) { this.dir = value }
})
Object.defineProperty(HTOTElement, 'eersteKind', {
get: function () { return this.firstChild },
set: function (value) { this.firstChild = value }
})
Object.defineProperty(HTOTElement, 'eersteElementKind', {
get: function () { return this.firstElementChild },
set: function (value) { this.firstElementChild = value }
})
Object.defineProperty(HTOTElement, 'binnensteHTOT', {
get: function () { return this.innerHTML },
set: function (value) { this.innerHTML = value }
})
Object.defineProperty(HTOTElement, 'binnensteTekst', {
get: function () { return this.innerText },
set: function (value) { this.innerText = value }
})
Object.defineProperty(HTOTElement, 'taal', {
get: function () { return this.lang },
set: function (value) { this.lang = value }
})
Object.defineProperty(HTOTElement, 'laatsteKind', {
get: function () { return this.lastChild },
set: function (value) { this.lastChild = value }
})
Object.defineProperty(HTOTElement, 'laatsteElementKind', {
get: function () { return this.lastElementChild },
set: function (value) { this.lastElementChild = value }
})
Object.defineProperty(HTOTElement, 'naamruimteUBI', {
get: function () { return this.namespaceURI },
set: function (value) { this.namespaceURI = value }
})
Object.defineProperty(HTOTElement, 'volgendeBroerOfZus', {
get: function () { return this.nextSibling },
set: function (value) { this.nextSibling = value }
})
Object.defineProperty(HTOTElement, 'volgendeElementBroerOfZus', {
get: function () { return this.nextElementSibling },
set: function (value) { this.nextElementSibling = value }
})
Object.defineProperty(HTOTElement, 'knooppuntNaam', {
get: function () { return this.nodeName },
set: function (value) { this.nodeName = value }
})
Object.defineProperty(HTOTElement, 'knooppuntType', {
get: function () { return this.nodeType },
set: function (value) { this.nodeType = value }
})
Object.defineProperty(HTOTElement, 'knooppuntWaarde', {
get: function () { return this.nodeValue },
set: function (value) { this.nodeValue = value }
})
Object.defineProperty(HTOTElement, 'afstandHoogte', {
get: function () { return this.offsetHeight },
set: function (value) { this.offsetHeight = value }
})
Object.defineProperty(HTOTElement, 'afstandBreedte', {
get: function () { return this.offsetWidth },
set: function (value) { this.offsetWidth = value }
})
Object.defineProperty(HTOTElement, 'afstandOuder', {
get: function () { return this.offsetParent },
set: function (value) { this.offsetParent = value }
})
Object.defineProperty(HTOTElement, 'afstandTop', {
get: function () { return this.offsetTop },
set: function (value) { this.offsetTop = value }
})
Object.defineProperty(HTOTElement, 'buitensteHTOT', {
get: function () { return this.outerHTML },
set: function (value) { this.outerHTML = value }
})
Object.defineProperty(HTOTElement, 'buitensteTekst', {
get: function () { return this.outerText },
set: function (value) { this.outerText = value }
})
Object.defineProperty(HTOTElement, 'eigenaarDocument', {
get: function () { return this.ownerDocument },
set: function (value) { this.ownerDocument = value }
})
Object.defineProperty(HTOTElement, 'ouderKnooppunt', {
get: function () { return this.parentNode },
set: function (value) { this.parentNode = value }
})
Object.defineProperty(HTOTElement, 'ouderElement', {
get: function () { return this.parentElement },
set: function (value) { this.parentElement = value }
})
Object.defineProperty(HTOTElement, 'vorigeBroerofZus', {
get: function () { return this.previousSibling },
set: function (value) { this.previousSibling = value }
})
Object.defineProperty(HTOTElement, 'vorigeElementBroerofZus', {
get: function () { return this.previousElementSibling },
set: function (value) { this.previousElementSibling = value }
})
Object.defineProperty(HTOTElement, 'scrollHoogte', {
get: function () { return this.scrollHeight },
set: function (value) { this.scrollHeight = value }
})
Object.defineProperty(HTOTElement, 'scrollLinks', {
get: function () { return this.scrollLeft },
set: function (value) { this.scrollLeft = value }
})
Object.defineProperty(HTOTElement, 'scrollBreedte', {
get: function () { return this.scrollWidth },
set: function (value) { this.scrollWidth = value }
})
Object.defineProperty(HTOTElement, 'stijl', {
get: function () { return this.style },
set: function (value) { this.style = value }
})
Object.defineProperty(HTOTElement, 'tabbladIndex', {
get: function () { return this.tabIndex },
set: function (value) { this.tabIndex = value }
})
Object.defineProperty(HTOTElement, 'labelNaam', {
get: function () { return this.tagName },
set: function (value) { this.tagName = value }
})
Object.defineProperty(HTOTElement, 'tekstInhoud', {
get: function () { return this.textContent },
set: function (value) { this.texContent = value }
})
Object.defineProperty(HTOTElement, 'titel', {
get: function () { return this.title },
set: function (value) { this.title = value }
})
HTOTElement.voegEvenementLuisteraarToe = HTOTElement.addEventListener
HTOTElement.voegKindToe = HTOTElement.appendChild
HTOTElement.vervaag = HTOTElement.blur
HTOTElement.klik = HTOTElement.click
HTOTElement.kloonKnooppunt = HTOTElement.cloneNode
HTOTElement.vergelijkDocumentPositie = HTOTElement.compareDocumentPosition
HTOTElement.heeft = HTOTElement.contains
HTOTElement.verlatVolledigScherm = HTOTElement.exitFullScreen
HTOTElement.krijgAttribuut = HTOTElement.getAttribute
HTOTElement.krijgAttribuutKnooppunt = HTOTElement.getAttributeNode
HTOTElement.krijgBegrenzendeCliëntRechthoek = HTOTElement.getBoundingClientRect
HTOTElement.krijgElementenBijKlasnaam = HTOTElement.getElementsByClassName
HTOTElement.krijgElementenBijLabelnaam = HTOTElement.getElementsByTagName
HTOTElement.heeftAttribuut = HTOTElement.hasAttribute
HTOTElement.heeftAttributen = HTOTElement.hasAttributes
HTOTElement.heeftKindKnooppunten = HTOTElement.hasChildNodes
HTOTElement.plaatsNaastgelegenElement = HTOTElement.insertAdjacentElement
HTOTElement.plaatsNaastgelegenHTOT = HTOTElement.insertAdjacentHTML
HTOTElement.plaatsNaastgelegenTekst = HTOTElement.insertAdjacentText
HTOTElement.plaatsVoor = HTOTElement.insertBefore
HTOTElement.isStandaardNaamruimte = HTOTElement.isDefaultNamespace
HTOTElement.isGelijkAanKnooppunt = HTOTElement.isEqualNode
HTOTElement.isHetzelfdeKnooppunt = HTOTElement.isSameNode
HTOTElement.isOndersteund = HTOTElement.isSupported
HTOTElement.normaliseer = HTOTElement.normalize
HTOTElement.vraagSelector = HTOTElement.querySelector
HTOTElement.vraagSelectorAlles = HTOTElement.querySelectorAll
HTOTElement.haalWeg = HTOTElement.remove
HTOTElement.haalAttribuutWeg = HTOTElement.removeAttribute
HTOTElement.haalAttribuutKnooppuntWeg = HTOTElement.removeAttributeNode
HTOTElement.haalKindWeg = HTOTElement.removeChild
HTOTElement.haalEvenementLuisteraarWeg = HTOTElement.removeEventListener
HTOTElement.vervangKind = HTOTElement.replaceChild
HTOTElement.verzoekVolledigScherm = HTOTElement.requestFullscreen
HTOTElement.scrollInWeergave = HTOTElement.scrollIntoView
HTOTElement.zetAttribuut = HTOTElement.setAttribute
HTOTElement.zetAttribuutKnooppunt = HTOTElement.setAttributeNode
HTOTElement.naarDraad = HTOTElement.toString
export default HTOTElement