happy-dom 2.54.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of happy-dom might be problematic. Click here for more details.

Files changed (299) hide show
  1. package/README.md +26 -6
  2. package/lib/async-task-manager/AsyncTaskManager.js +34 -78
  3. package/lib/async-task-manager/AsyncTaskManager.js.map +1 -1
  4. package/lib/attribute/Attr.js +19 -28
  5. package/lib/attribute/Attr.js.map +1 -1
  6. package/lib/config/ElementTag.d.ts +2 -1
  7. package/lib/config/ElementTag.js +16 -15
  8. package/lib/config/ElementTag.js.map +1 -1
  9. package/lib/config/NonImplemenetedElementClasses.js +0 -1
  10. package/lib/config/NonImplemenetedElementClasses.js.map +1 -1
  11. package/lib/cookie/CookieUtility.js +21 -26
  12. package/lib/cookie/CookieUtility.js.map +1 -1
  13. package/lib/css/CSS.js +12 -18
  14. package/lib/css/CSS.js.map +1 -1
  15. package/lib/css/CSSParser.js +29 -33
  16. package/lib/css/CSSParser.js.map +1 -1
  17. package/lib/css/CSSRule.js +24 -29
  18. package/lib/css/CSSRule.js.map +1 -1
  19. package/lib/css/CSSStyleDeclaration.js +4516 -6005
  20. package/lib/css/CSSStyleDeclaration.js.map +1 -1
  21. package/lib/css/CSSStyleSheet.js +17 -59
  22. package/lib/css/CSSStyleSheet.js.map +1 -1
  23. package/lib/css/CSSUnitValue.js +4 -5
  24. package/lib/css/CSSUnitValue.js.map +1 -1
  25. package/lib/css/MediaList.js +23 -28
  26. package/lib/css/MediaList.js.map +1 -1
  27. package/lib/css/rules/CSSFontFaceRule.js +6 -24
  28. package/lib/css/rules/CSSFontFaceRule.js.map +1 -1
  29. package/lib/css/rules/CSSKeyframeRule.js +14 -36
  30. package/lib/css/rules/CSSKeyframeRule.js.map +1 -1
  31. package/lib/css/rules/CSSKeyframesRule.js +31 -54
  32. package/lib/css/rules/CSSKeyframesRule.js.map +1 -1
  33. package/lib/css/rules/CSSMediaRule.js +29 -56
  34. package/lib/css/rules/CSSMediaRule.js.map +1 -1
  35. package/lib/css/rules/CSSStyleRule.js +16 -38
  36. package/lib/css/rules/CSSStyleRule.js.map +1 -1
  37. package/lib/custom-element/CustomElementRegistry.js +21 -24
  38. package/lib/custom-element/CustomElementRegistry.js.map +1 -1
  39. package/lib/dom-implementation/DOMImplementation.js +12 -13
  40. package/lib/dom-implementation/DOMImplementation.js.map +1 -1
  41. package/lib/dom-parser/DOMParser.js +29 -35
  42. package/lib/dom-parser/DOMParser.js.map +1 -1
  43. package/lib/dom-token-list/DOMTokenList.js +64 -79
  44. package/lib/dom-token-list/DOMTokenList.js.map +1 -1
  45. package/lib/event/DataTransfer.js +4 -5
  46. package/lib/event/DataTransfer.js.map +1 -1
  47. package/lib/event/DataTransferItem.js +7 -8
  48. package/lib/event/DataTransferItem.js.map +1 -1
  49. package/lib/event/DataTransferItemList.js +10 -11
  50. package/lib/event/DataTransferItemList.js.map +1 -1
  51. package/lib/event/Event.js +11 -15
  52. package/lib/event/Event.js.map +1 -1
  53. package/lib/event/EventTarget.js +14 -16
  54. package/lib/event/EventTarget.js.map +1 -1
  55. package/lib/event/IUIEventInit.d.ts +2 -2
  56. package/lib/event/UIEvent.d.ts +2 -2
  57. package/lib/event/UIEvent.js +25 -46
  58. package/lib/event/UIEvent.js.map +1 -1
  59. package/lib/event/events/AnimationEvent.js +11 -29
  60. package/lib/event/events/AnimationEvent.js.map +1 -1
  61. package/lib/event/events/CustomEvent.js +9 -31
  62. package/lib/event/events/CustomEvent.js.map +1 -1
  63. package/lib/event/events/ErrorEvent.js +15 -34
  64. package/lib/event/events/ErrorEvent.js.map +1 -1
  65. package/lib/event/events/FocusEvent.js +7 -26
  66. package/lib/event/events/FocusEvent.js.map +1 -1
  67. package/lib/event/events/InputEvent.js +13 -32
  68. package/lib/event/events/InputEvent.js.map +1 -1
  69. package/lib/event/events/KeyboardEvent.js +27 -46
  70. package/lib/event/events/KeyboardEvent.js.map +1 -1
  71. package/lib/event/events/MouseEvent.js +33 -52
  72. package/lib/event/events/MouseEvent.js.map +1 -1
  73. package/lib/event/events/PointerEvent.js +25 -44
  74. package/lib/event/events/PointerEvent.js.map +1 -1
  75. package/lib/event/events/ProgressEvent.js +11 -30
  76. package/lib/event/events/ProgressEvent.js.map +1 -1
  77. package/lib/event/events/StorageEvent.js +13 -32
  78. package/lib/event/events/StorageEvent.js.map +1 -1
  79. package/lib/event/events/WheelEvent.js +16 -35
  80. package/lib/event/events/WheelEvent.js.map +1 -1
  81. package/lib/exception/DOMException.js +5 -24
  82. package/lib/exception/DOMException.js.map +1 -1
  83. package/lib/fetch/FetchHandler.js +18 -22
  84. package/lib/fetch/FetchHandler.js.map +1 -1
  85. package/lib/fetch/Headers.js +3 -23
  86. package/lib/fetch/Headers.js.map +1 -1
  87. package/lib/fetch/Request.js +61 -81
  88. package/lib/fetch/Request.js.map +1 -1
  89. package/lib/fetch/ResourceFetchHandler.js +18 -67
  90. package/lib/fetch/ResourceFetchHandler.js.map +1 -1
  91. package/lib/fetch/Response.js +61 -81
  92. package/lib/fetch/Response.js.map +1 -1
  93. package/lib/file/Blob.js +29 -78
  94. package/lib/file/Blob.js.map +1 -1
  95. package/lib/file/File.js +9 -27
  96. package/lib/file/File.js.map +1 -1
  97. package/lib/file/FileReader.js +57 -78
  98. package/lib/file/FileReader.js.map +1 -1
  99. package/lib/history/History.js +32 -37
  100. package/lib/history/History.js.map +1 -1
  101. package/lib/index.d.ts +5 -3
  102. package/lib/index.js +71 -69
  103. package/lib/index.js.map +1 -1
  104. package/lib/location/Location.js +11 -28
  105. package/lib/location/Location.js.map +1 -1
  106. package/lib/location/RelativeURL.js +5 -8
  107. package/lib/location/RelativeURL.js.map +1 -1
  108. package/lib/location/URL.js +46 -59
  109. package/lib/location/URL.js.map +1 -1
  110. package/lib/match-media/MediaQueryList.js +28 -54
  111. package/lib/match-media/MediaQueryList.js.map +1 -1
  112. package/lib/mutation-observer/MutationListener.js +3 -4
  113. package/lib/mutation-observer/MutationListener.js.map +1 -1
  114. package/lib/mutation-observer/MutationObserver.js +12 -13
  115. package/lib/mutation-observer/MutationObserver.js.map +1 -1
  116. package/lib/mutation-observer/MutationRecord.js +3 -4
  117. package/lib/mutation-observer/MutationRecord.js.map +1 -1
  118. package/lib/navigator/MimeType.js +5 -6
  119. package/lib/navigator/MimeType.js.map +1 -1
  120. package/lib/navigator/MimeTypeArray.js +10 -11
  121. package/lib/navigator/MimeTypeArray.js.map +1 -1
  122. package/lib/navigator/Navigator.js +7 -8
  123. package/lib/navigator/Navigator.js.map +1 -1
  124. package/lib/navigator/Plugin.js +10 -11
  125. package/lib/navigator/Plugin.js.map +1 -1
  126. package/lib/navigator/PluginArray.js +12 -13
  127. package/lib/navigator/PluginArray.js.map +1 -1
  128. package/lib/nodes/character-data/CharacterData.js +119 -184
  129. package/lib/nodes/character-data/CharacterData.js.map +1 -1
  130. package/lib/nodes/character-data/CharacterDataUtility.js +12 -15
  131. package/lib/nodes/character-data/CharacterDataUtility.js.map +1 -1
  132. package/lib/nodes/child-node/ChildNodeUtility.js +24 -45
  133. package/lib/nodes/child-node/ChildNodeUtility.js.map +1 -1
  134. package/lib/nodes/child-node/NonDocumentChildNodeUtility.js +9 -12
  135. package/lib/nodes/child-node/NonDocumentChildNodeUtility.js.map +1 -1
  136. package/lib/nodes/comment/Comment.js +20 -43
  137. package/lib/nodes/comment/Comment.js.map +1 -1
  138. package/lib/nodes/document/Document.d.ts +3 -3
  139. package/lib/nodes/document/Document.js +334 -461
  140. package/lib/nodes/document/Document.js.map +1 -1
  141. package/lib/nodes/document/DocumentReadyStateManager.js +16 -19
  142. package/lib/nodes/document/DocumentReadyStateManager.js.map +1 -1
  143. package/lib/nodes/document/IDocument.d.ts +2 -2
  144. package/lib/nodes/document-fragment/DocumentFragment.js +93 -153
  145. package/lib/nodes/document-fragment/DocumentFragment.js.map +1 -1
  146. package/lib/nodes/document-type/DocumentType.js +22 -45
  147. package/lib/nodes/document-type/DocumentType.js.map +1 -1
  148. package/lib/nodes/element/DOMRect.js +3 -4
  149. package/lib/nodes/element/DOMRect.js.map +1 -1
  150. package/lib/nodes/element/Element.js +367 -496
  151. package/lib/nodes/element/Element.js.map +1 -1
  152. package/lib/nodes/element/HTMLCollection.js +4 -24
  153. package/lib/nodes/element/HTMLCollection.js.map +1 -1
  154. package/lib/nodes/element/HTMLCollectionFactory.js +6 -9
  155. package/lib/nodes/element/HTMLCollectionFactory.js.map +1 -1
  156. package/lib/nodes/element/Range.js +89 -114
  157. package/lib/nodes/element/Range.js.map +1 -1
  158. package/lib/nodes/html-base-element/HTMLBaseElement.d.ts +42 -0
  159. package/lib/nodes/html-base-element/HTMLBaseElement.js +62 -0
  160. package/lib/nodes/html-base-element/HTMLBaseElement.js.map +1 -0
  161. package/lib/nodes/html-base-element/IHTMLBaseElement.d.ts +19 -0
  162. package/lib/nodes/html-base-element/IHTMLBaseElement.js +3 -0
  163. package/lib/nodes/html-base-element/IHTMLBaseElement.js.map +1 -0
  164. package/lib/nodes/html-document/HTMLDocument.js +3 -23
  165. package/lib/nodes/html-document/HTMLDocument.js.map +1 -1
  166. package/lib/nodes/html-element/DatasetUtility.js +9 -12
  167. package/lib/nodes/html-element/DatasetUtility.js.map +1 -1
  168. package/lib/nodes/html-element/HTMLElement.js +232 -290
  169. package/lib/nodes/html-element/HTMLElement.js.map +1 -1
  170. package/lib/nodes/html-form-element/HTMLFormElement.js +170 -235
  171. package/lib/nodes/html-form-element/HTMLFormElement.js.map +1 -1
  172. package/lib/nodes/html-image-element/HTMLImageElement.js +178 -237
  173. package/lib/nodes/html-image-element/HTMLImageElement.js.map +1 -1
  174. package/lib/nodes/html-image-element/Image.js +7 -27
  175. package/lib/nodes/html-image-element/Image.js.map +1 -1
  176. package/lib/nodes/html-input-element/HTMLInputElement.js +705 -872
  177. package/lib/nodes/html-input-element/HTMLInputElement.js.map +1 -1
  178. package/lib/nodes/html-input-element/HTMLInputElementValueSanitizer.js +9 -12
  179. package/lib/nodes/html-input-element/HTMLInputElementValueSanitizer.js.map +1 -1
  180. package/lib/nodes/html-input-element/HTMLInputElementValueStepping.js +5 -8
  181. package/lib/nodes/html-input-element/HTMLInputElementValueStepping.js.map +1 -1
  182. package/lib/nodes/html-input-element/ValidityState.js +47 -69
  183. package/lib/nodes/html-input-element/ValidityState.js.map +1 -1
  184. package/lib/nodes/html-label-element/HTMLLabelElement.js +53 -87
  185. package/lib/nodes/html-label-element/HTMLLabelElement.js.map +1 -1
  186. package/lib/nodes/html-link-element/HTMLLinkElement.js +197 -252
  187. package/lib/nodes/html-link-element/HTMLLinkElement.js.map +1 -1
  188. package/lib/nodes/html-meta-element/HTMLMetaElement.js +66 -102
  189. package/lib/nodes/html-meta-element/HTMLMetaElement.js.map +1 -1
  190. package/lib/nodes/html-script-element/HTMLScriptElement.js +145 -193
  191. package/lib/nodes/html-script-element/HTMLScriptElement.js.map +1 -1
  192. package/lib/nodes/html-script-element/ScriptUtility.js +58 -112
  193. package/lib/nodes/html-script-element/ScriptUtility.js.map +1 -1
  194. package/lib/nodes/html-slot-element/HTMLSlotElement.js +33 -65
  195. package/lib/nodes/html-slot-element/HTMLSlotElement.js.map +1 -1
  196. package/lib/nodes/html-style-element/HTMLStyleElement.js +75 -109
  197. package/lib/nodes/html-style-element/HTMLStyleElement.js.map +1 -1
  198. package/lib/nodes/html-template-element/HTMLTemplateElement.js +60 -99
  199. package/lib/nodes/html-template-element/HTMLTemplateElement.js.map +1 -1
  200. package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js +349 -444
  201. package/lib/nodes/html-text-area-element/HTMLTextAreaElement.js.map +1 -1
  202. package/lib/nodes/html-unknown-element/HTMLUnknownElement.js +17 -37
  203. package/lib/nodes/html-unknown-element/HTMLUnknownElement.js.map +1 -1
  204. package/lib/nodes/node/INode.d.ts +1 -0
  205. package/lib/nodes/node/Node.d.ts +6 -0
  206. package/lib/nodes/node/Node.js +193 -244
  207. package/lib/nodes/node/Node.js.map +1 -1
  208. package/lib/nodes/node/NodeList.js +4 -24
  209. package/lib/nodes/node/NodeList.js.map +1 -1
  210. package/lib/nodes/node/NodeListFactory.js +6 -9
  211. package/lib/nodes/node/NodeListFactory.js.map +1 -1
  212. package/lib/nodes/parent-node/ParentNodeUtility.js +43 -78
  213. package/lib/nodes/parent-node/ParentNodeUtility.js.map +1 -1
  214. package/lib/nodes/shadow-root/ShadowRoot.js +53 -83
  215. package/lib/nodes/shadow-root/ShadowRoot.js.map +1 -1
  216. package/lib/nodes/svg-document/SVGDocument.js +3 -23
  217. package/lib/nodes/svg-document/SVGDocument.js.map +1 -1
  218. package/lib/nodes/svg-element/DOMMatrix.js +3 -4
  219. package/lib/nodes/svg-element/DOMMatrix.js.map +1 -1
  220. package/lib/nodes/svg-element/SVGAngle.js +10 -11
  221. package/lib/nodes/svg-element/SVGAngle.js.map +1 -1
  222. package/lib/nodes/svg-element/SVGAnimatedRect.js +4 -5
  223. package/lib/nodes/svg-element/SVGAnimatedRect.js.map +1 -1
  224. package/lib/nodes/svg-element/SVGElement.js +58 -93
  225. package/lib/nodes/svg-element/SVGElement.js.map +1 -1
  226. package/lib/nodes/svg-element/SVGGraphicsElement.js +14 -32
  227. package/lib/nodes/svg-element/SVGGraphicsElement.js.map +1 -1
  228. package/lib/nodes/svg-element/SVGLength.js +16 -17
  229. package/lib/nodes/svg-element/SVGLength.js.map +1 -1
  230. package/lib/nodes/svg-element/SVGNumber.js +3 -4
  231. package/lib/nodes/svg-element/SVGNumber.js.map +1 -1
  232. package/lib/nodes/svg-element/SVGPoint.js +3 -4
  233. package/lib/nodes/svg-element/SVGPoint.js.map +1 -1
  234. package/lib/nodes/svg-element/SVGRect.js +3 -4
  235. package/lib/nodes/svg-element/SVGRect.js.map +1 -1
  236. package/lib/nodes/svg-element/SVGSVGElement.js +187 -248
  237. package/lib/nodes/svg-element/SVGSVGElement.js.map +1 -1
  238. package/lib/nodes/svg-element/SVGTransform.js +16 -17
  239. package/lib/nodes/svg-element/SVGTransform.js.map +1 -1
  240. package/lib/nodes/text/Text.js +20 -43
  241. package/lib/nodes/text/Text.js.map +1 -1
  242. package/lib/nodes/xml-document/XMLDocument.js +3 -23
  243. package/lib/nodes/xml-document/XMLDocument.js.map +1 -1
  244. package/lib/query-selector/QuerySelector.js +36 -44
  245. package/lib/query-selector/QuerySelector.js.map +1 -1
  246. package/lib/query-selector/SelectorItem.js +62 -66
  247. package/lib/query-selector/SelectorItem.js.map +1 -1
  248. package/lib/resize-observer/ResizeObserver.js +8 -11
  249. package/lib/resize-observer/ResizeObserver.js.map +1 -1
  250. package/lib/screen/Screen.js +3 -4
  251. package/lib/screen/Screen.js.map +1 -1
  252. package/lib/selection/Selection.js +29 -30
  253. package/lib/selection/Selection.js.map +1 -1
  254. package/lib/storage/Storage.js +22 -27
  255. package/lib/storage/Storage.js.map +1 -1
  256. package/lib/tree-walker/NodeFilterMask.js +1 -1
  257. package/lib/tree-walker/NodeFilterMask.js.map +1 -1
  258. package/lib/tree-walker/TreeWalker.js +30 -33
  259. package/lib/tree-walker/TreeWalker.js.map +1 -1
  260. package/lib/window/GlobalWindow.d.ts +84 -0
  261. package/lib/window/GlobalWindow.js +90 -0
  262. package/lib/window/GlobalWindow.js.map +1 -0
  263. package/lib/window/IWindow.d.ts +37 -18
  264. package/lib/window/VMGlobalPropertyScript.d.ts +2 -0
  265. package/lib/window/VMGlobalPropertyScript.js +65 -0
  266. package/lib/window/VMGlobalPropertyScript.js.map +1 -0
  267. package/lib/window/Window.d.ts +78 -105
  268. package/lib/window/Window.js +277 -489
  269. package/lib/window/Window.js.map +1 -1
  270. package/lib/xml-parser/XMLParser.js +65 -71
  271. package/lib/xml-parser/XMLParser.js.map +1 -1
  272. package/lib/xml-serializer/XMLSerializer.js +30 -37
  273. package/lib/xml-serializer/XMLSerializer.js.map +1 -1
  274. package/package.json +6 -7
  275. package/src/config/ElementTag.ts +2 -1
  276. package/src/config/NonImplemenetedElementClasses.ts +0 -1
  277. package/src/dom-parser/DOMParser.ts +4 -5
  278. package/src/event/IUIEventInit.ts +2 -2
  279. package/src/event/UIEvent.ts +2 -2
  280. package/src/fetch/FetchHandler.ts +3 -3
  281. package/src/fetch/ResourceFetchHandler.ts +3 -3
  282. package/src/index.ts +7 -3
  283. package/src/nodes/document/Document.ts +4 -4
  284. package/src/nodes/document/IDocument.ts +2 -2
  285. package/src/nodes/html-base-element/HTMLBaseElement.ts +61 -0
  286. package/src/nodes/html-base-element/IHTMLBaseElement.ts +21 -0
  287. package/src/nodes/html-link-element/HTMLLinkElement.ts +8 -2
  288. package/src/nodes/html-script-element/ScriptUtility.ts +4 -4
  289. package/src/nodes/node/INode.ts +1 -0
  290. package/src/nodes/node/Node.ts +14 -0
  291. package/src/window/GlobalWindow.ts +82 -0
  292. package/src/window/IWindow.ts +33 -12
  293. package/src/window/VMGlobalPropertyScript.ts +62 -0
  294. package/src/window/Window.ts +115 -173
  295. package/tsconfig.json +1 -1
  296. package/lib/window/AsyncWindow.d.ts +0 -10
  297. package/lib/window/AsyncWindow.js +0 -38
  298. package/lib/window/AsyncWindow.js.map +0 -1
  299. package/src/window/AsyncWindow.ts +0 -17
@@ -1,32 +1,17 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
18
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
19
4
  };
20
5
  Object.defineProperty(exports, "__esModule", { value: true });
21
- var HTMLElement_1 = __importDefault(require("../html-element/HTMLElement"));
22
- var ValidityState_1 = __importDefault(require("./ValidityState"));
23
- var DOMException_1 = __importDefault(require("../../exception/DOMException"));
24
- var DOMExceptionNameEnum_1 = __importDefault(require("../../exception/DOMExceptionNameEnum"));
25
- var Event_1 = __importDefault(require("../../event/Event"));
26
- var HTMLInputElementValueSanitizer_1 = __importDefault(require("./HTMLInputElementValueSanitizer"));
27
- var HTMLInputElementSelectionModeEnum_1 = __importDefault(require("./HTMLInputElementSelectionModeEnum"));
28
- var HTMLInputElementSelectionDirectionEnum_1 = __importDefault(require("./HTMLInputElementSelectionDirectionEnum"));
29
- var HTMLInputElementValueStepping_1 = __importDefault(require("./HTMLInputElementValueStepping"));
6
+ const HTMLElement_1 = __importDefault(require("../html-element/HTMLElement"));
7
+ const ValidityState_1 = __importDefault(require("./ValidityState"));
8
+ const DOMException_1 = __importDefault(require("../../exception/DOMException"));
9
+ const DOMExceptionNameEnum_1 = __importDefault(require("../../exception/DOMExceptionNameEnum"));
10
+ const Event_1 = __importDefault(require("../../event/Event"));
11
+ const HTMLInputElementValueSanitizer_1 = __importDefault(require("./HTMLInputElementValueSanitizer"));
12
+ const HTMLInputElementSelectionModeEnum_1 = __importDefault(require("./HTMLInputElementSelectionModeEnum"));
13
+ const HTMLInputElementSelectionDirectionEnum_1 = __importDefault(require("./HTMLInputElementSelectionDirectionEnum"));
14
+ const HTMLInputElementValueStepping_1 = __importDefault(require("./HTMLInputElementValueStepping"));
30
15
  /**
31
16
  * HTML Input Element.
32
17
  *
@@ -36,846 +21,700 @@ var HTMLInputElementValueStepping_1 = __importDefault(require("./HTMLInputElemen
36
21
  * Used as reference for some of the logic (like selection range):
37
22
  * https://github.com/jsdom/jsdom/blob/master/lib/jsdom/living/nodes/nodes/HTMLInputElement-impl.js (MIT licensed).
38
23
  */
39
- var HTMLInputElement = /** @class */ (function (_super) {
40
- __extends(HTMLInputElement, _super);
41
- function HTMLInputElement() {
42
- var _this = _super !== null && _super.apply(this, arguments) || this;
24
+ class HTMLInputElement extends HTMLElement_1.default {
25
+ constructor() {
26
+ super(...arguments);
43
27
  // Related to parent form.
44
- _this.formAction = '';
45
- _this.formMethod = '';
46
- _this.formNoValidate = false;
28
+ this.formAction = '';
29
+ this.formMethod = '';
30
+ this.formNoValidate = false;
47
31
  // Any type of input
48
- _this._value = null;
49
- _this._height = 0;
50
- _this._width = 0;
32
+ this._value = null;
33
+ this._height = 0;
34
+ this._width = 0;
51
35
  // Type specific: checkbox/radio
52
- _this.defaultChecked = false;
36
+ this.defaultChecked = false;
53
37
  // Type specific: file
54
- _this.files = [];
38
+ this.files = [];
55
39
  // Type specific: text/password/search/tel/url/week/month
56
- _this._selectionStart = null;
57
- _this._selectionEnd = null;
58
- _this._selectionDirection = HTMLInputElementSelectionDirectionEnum_1.default.none;
59
- _this._validationMessage = '';
60
- return _this;
61
- }
62
- Object.defineProperty(HTMLInputElement.prototype, "height", {
63
- /**
64
- * Returns height.
65
- *
66
- * @returns Height.
67
- */
68
- get: function () {
69
- return this._height;
70
- },
71
- /**
72
- * Sets height.
73
- *
74
- * @param height Height.
75
- */
76
- set: function (height) {
77
- this._height = height;
78
- this.setAttributeNS(null, 'height', String(height));
79
- },
80
- enumerable: false,
81
- configurable: true
82
- });
83
- Object.defineProperty(HTMLInputElement.prototype, "width", {
84
- /**
85
- * Returns width.
86
- *
87
- * @returns Width.
88
- */
89
- get: function () {
90
- return this._width;
91
- },
92
- /**
93
- * Sets width.
94
- *
95
- * @param width Width.
96
- */
97
- set: function (width) {
98
- this._width = width;
99
- this.setAttributeNS(null, 'width', String(width));
100
- },
101
- enumerable: false,
102
- configurable: true
103
- });
104
- Object.defineProperty(HTMLInputElement.prototype, "size", {
105
- /**
106
- * Returns size.
107
- *
108
- * @returns Size.
109
- */
110
- get: function () {
111
- var size = this.getAttributeNS(null, 'size');
112
- if (size !== null) {
113
- return parseInt(size);
114
- }
115
- return 20;
116
- },
117
- /**
118
- * Sets size.
119
- *
120
- * @param size Size.
121
- */
122
- set: function (size) {
123
- this.setAttributeNS(null, 'size', String(size));
124
- },
125
- enumerable: false,
126
- configurable: true
127
- });
128
- Object.defineProperty(HTMLInputElement.prototype, "minLength", {
129
- /**
130
- * Returns minlength.
131
- *
132
- * @returns Min length.
133
- */
134
- get: function () {
135
- var minLength = this.getAttributeNS(null, 'minlength');
136
- if (minLength !== null) {
137
- return parseInt(minLength);
138
- }
139
- return -1;
140
- },
141
- /**
142
- * Sets minlength.
143
- *
144
- * @param minLength Min length.
145
- */
146
- set: function (minlength) {
147
- this.setAttributeNS(null, 'minlength', String(minlength));
148
- },
149
- enumerable: false,
150
- configurable: true
151
- });
152
- Object.defineProperty(HTMLInputElement.prototype, "maxLength", {
153
- /**
154
- * Returns maxlength.
155
- *
156
- * @returns Max length.
157
- */
158
- get: function () {
159
- var maxLength = this.getAttributeNS(null, 'maxlength');
160
- if (maxLength !== null) {
161
- return parseInt(maxLength);
162
- }
163
- return -1;
164
- },
165
- /**
166
- * Sets maxlength.
167
- *
168
- * @param maxlength Max length.
169
- */
170
- set: function (maxLength) {
171
- this.setAttributeNS(null, 'maxlength', String(maxLength));
172
- },
173
- enumerable: false,
174
- configurable: true
175
- });
176
- Object.defineProperty(HTMLInputElement.prototype, "type", {
177
- /**
178
- * Returns type.
179
- *
180
- * @returns Type. Defaults to "text".
181
- */
182
- get: function () {
183
- return this.getAttributeNS(null, 'type') || 'text';
184
- },
185
- /**
186
- * Sets type.
187
- *
188
- * @param type Type.
189
- */
190
- set: function (type) {
191
- this.setAttributeNS(null, 'type', type.toLowerCase());
192
- },
193
- enumerable: false,
194
- configurable: true
195
- });
196
- Object.defineProperty(HTMLInputElement.prototype, "name", {
197
- /**
198
- * Returns name.
199
- *
200
- * @returns Name.
201
- */
202
- get: function () {
203
- return this.getAttributeNS(null, 'name') || '';
204
- },
205
- /**
206
- * Sets name.
207
- *
208
- * @param name Name.
209
- */
210
- set: function (name) {
211
- this.setAttributeNS(null, 'name', name);
212
- },
213
- enumerable: false,
214
- configurable: true
215
- });
216
- Object.defineProperty(HTMLInputElement.prototype, "alt", {
217
- /**
218
- * Returns alt.
219
- *
220
- * @returns Alt.
221
- */
222
- get: function () {
223
- return this.getAttributeNS(null, 'alt') || '';
224
- },
225
- /**
226
- * Sets alt.
227
- *
228
- * @param alt Alt.
229
- */
230
- set: function (alt) {
231
- this.setAttributeNS(null, 'alt', alt);
232
- },
233
- enumerable: false,
234
- configurable: true
235
- });
236
- Object.defineProperty(HTMLInputElement.prototype, "min", {
237
- /**
238
- * Returns min.
239
- *
240
- * @returns Min.
241
- */
242
- get: function () {
243
- return this.getAttributeNS(null, 'min') || '';
244
- },
245
- /**
246
- * Sets min.
247
- *
248
- * @param min Min.
249
- */
250
- set: function (min) {
251
- this.setAttributeNS(null, 'min', min);
252
- },
253
- enumerable: false,
254
- configurable: true
255
- });
256
- Object.defineProperty(HTMLInputElement.prototype, "max", {
257
- /**
258
- * Returns max.
259
- *
260
- * @returns Max.
261
- */
262
- get: function () {
263
- return this.getAttributeNS(null, 'max') || '';
264
- },
265
- /**
266
- * Sets max.
267
- *
268
- * @param max Max.
269
- */
270
- set: function (max) {
271
- this.setAttributeNS(null, 'max', max);
272
- },
273
- enumerable: false,
274
- configurable: true
275
- });
276
- Object.defineProperty(HTMLInputElement.prototype, "pattern", {
277
- /**
278
- * Returns pattern.
279
- *
280
- * @returns Pattern.
281
- */
282
- get: function () {
283
- return this.getAttributeNS(null, 'pattern') || '';
284
- },
285
- /**
286
- * Sets pattern.
287
- *
288
- * @param pattern Pattern.
289
- */
290
- set: function (pattern) {
291
- this.setAttributeNS(null, 'pattern', pattern);
292
- },
293
- enumerable: false,
294
- configurable: true
295
- });
296
- Object.defineProperty(HTMLInputElement.prototype, "placeholder", {
297
- /**
298
- * Returns placeholder.
299
- *
300
- * @returns Placeholder.
301
- */
302
- get: function () {
303
- return this.getAttributeNS(null, 'placeholder') || '';
304
- },
305
- /**
306
- * Sets placeholder.
307
- *
308
- * @param placeholder Placeholder.
309
- */
310
- set: function (placeholder) {
311
- this.setAttributeNS(null, 'placeholder', placeholder);
312
- },
313
- enumerable: false,
314
- configurable: true
315
- });
316
- Object.defineProperty(HTMLInputElement.prototype, "step", {
317
- /**
318
- * Returns step.
319
- *
320
- * @returns Step.
321
- */
322
- get: function () {
323
- return this.getAttributeNS(null, 'step') || '';
324
- },
325
- /**
326
- * Sets step.
327
- *
328
- * @param step Step.
329
- */
330
- set: function (step) {
331
- this.setAttributeNS(null, 'step', step);
332
- },
333
- enumerable: false,
334
- configurable: true
335
- });
336
- Object.defineProperty(HTMLInputElement.prototype, "inputmode", {
337
- /**
338
- * Returns inputmode.
339
- *
340
- * @returns Inputmode.
341
- */
342
- get: function () {
343
- return this.getAttributeNS(null, 'inputmode') || '';
344
- },
345
- /**
346
- * Sets inputmode.
347
- *
348
- * @param inputmode Inputmode.
349
- */
350
- set: function (inputmode) {
351
- this.setAttributeNS(null, 'inputmode', inputmode);
352
- },
353
- enumerable: false,
354
- configurable: true
355
- });
356
- Object.defineProperty(HTMLInputElement.prototype, "accept", {
357
- /**
358
- * Returns accept.
359
- *
360
- * @returns Accept.
361
- */
362
- get: function () {
363
- return this.getAttributeNS(null, 'accept') || '';
364
- },
365
- /**
366
- * Sets accept.
367
- *
368
- * @param accept Accept.
369
- */
370
- set: function (accept) {
371
- this.setAttributeNS(null, 'accept', accept);
372
- },
373
- enumerable: false,
374
- configurable: true
375
- });
376
- Object.defineProperty(HTMLInputElement.prototype, "allowdirs", {
377
- /**
378
- * Returns allowdirs.
379
- *
380
- * @returns Allowdirs.
381
- */
382
- get: function () {
383
- return this.getAttributeNS(null, 'allowdirs') || '';
384
- },
385
- /**
386
- * Sets allowdirs.
387
- *
388
- * @param allowdirs Allowdirs.
389
- */
390
- set: function (allowdirs) {
391
- this.setAttributeNS(null, 'allowdirs', allowdirs);
392
- },
393
- enumerable: false,
394
- configurable: true
395
- });
396
- Object.defineProperty(HTMLInputElement.prototype, "autocomplete", {
397
- /**
398
- * Returns autocomplete.
399
- *
400
- * @returns Autocomplete.
401
- */
402
- get: function () {
403
- return this.getAttributeNS(null, 'autocomplete') || '';
404
- },
405
- /**
406
- * Sets autocomplete.
407
- *
408
- * @param autocomplete Autocomplete.
409
- */
410
- set: function (autocomplete) {
411
- this.setAttributeNS(null, 'autocomplete', autocomplete);
412
- },
413
- enumerable: false,
414
- configurable: true
415
- });
416
- Object.defineProperty(HTMLInputElement.prototype, "src", {
417
- /**
418
- * Returns src.
419
- *
420
- * @returns Src.
421
- */
422
- get: function () {
423
- return this.getAttributeNS(null, 'src') || '';
424
- },
425
- /**
426
- * Sets src.
427
- *
428
- * @param src Src.
429
- */
430
- set: function (src) {
431
- this.setAttributeNS(null, 'src', src);
432
- },
433
- enumerable: false,
434
- configurable: true
435
- });
436
- Object.defineProperty(HTMLInputElement.prototype, "defaultValue", {
437
- /**
438
- * Returns defaultValue.
439
- *
440
- * @returns Defaultvalue.
441
- */
442
- get: function () {
443
- return this.getAttributeNS(null, 'defaultvalue') || '';
444
- },
445
- /**
446
- * Sets defaultValue.
447
- *
448
- * @param defaultValue Defaultvalue.
449
- */
450
- set: function (defaultValue) {
451
- this.setAttributeNS(null, 'defaultvalue', defaultValue);
452
- },
453
- enumerable: false,
454
- configurable: true
455
- });
456
- Object.defineProperty(HTMLInputElement.prototype, "readOnly", {
457
- /**
458
- * Returns read only.
459
- *
460
- * @returns Read only.
461
- */
462
- get: function () {
463
- return this.getAttributeNS(null, 'readonly') !== null;
464
- },
465
- /**
466
- * Sets read only.
467
- *
468
- * @param readOnly Read only.
469
- */
470
- set: function (readOnly) {
471
- if (!readOnly) {
472
- this.removeAttributeNS(null, 'readonly');
473
- }
474
- else {
475
- this.setAttributeNS(null, 'readonly', '');
476
- }
477
- },
478
- enumerable: false,
479
- configurable: true
480
- });
481
- Object.defineProperty(HTMLInputElement.prototype, "disabled", {
482
- /**
483
- * Returns disabled.
484
- *
485
- * @returns Disabled.
486
- */
487
- get: function () {
488
- return this.getAttributeNS(null, 'disabled') !== null;
489
- },
490
- /**
491
- * Sets disabled.
492
- *
493
- * @param disabled Disabled.
494
- */
495
- set: function (disabled) {
496
- if (!disabled) {
497
- this.removeAttributeNS(null, 'disabled');
498
- }
499
- else {
500
- this.setAttributeNS(null, 'disabled', '');
501
- }
502
- },
503
- enumerable: false,
504
- configurable: true
505
- });
506
- Object.defineProperty(HTMLInputElement.prototype, "autofocus", {
507
- /**
508
- * Returns autofocus.
509
- *
510
- * @returns Autofocus.
511
- */
512
- get: function () {
513
- return this.getAttributeNS(null, 'autofocus') !== null;
514
- },
515
- /**
516
- * Sets autofocus.
517
- *
518
- * @param autofocus Autofocus.
519
- */
520
- set: function (autofocus) {
521
- if (!autofocus) {
522
- this.removeAttributeNS(null, 'autofocus');
523
- }
524
- else {
525
- this.setAttributeNS(null, 'autofocus', '');
526
- }
527
- },
528
- enumerable: false,
529
- configurable: true
530
- });
531
- Object.defineProperty(HTMLInputElement.prototype, "required", {
532
- /**
533
- * Returns required.
534
- *
535
- * @returns Required.
536
- */
537
- get: function () {
538
- return this.getAttributeNS(null, 'required') !== null;
539
- },
540
- /**
541
- * Sets required.
542
- *
543
- * @param required Required.
544
- */
545
- set: function (required) {
546
- if (!required) {
547
- this.removeAttributeNS(null, 'required');
548
- }
549
- else {
550
- this.setAttributeNS(null, 'required', '');
551
- }
552
- },
553
- enumerable: false,
554
- configurable: true
555
- });
556
- Object.defineProperty(HTMLInputElement.prototype, "indeterminate", {
557
- /**
558
- * Returns indeterminate.
559
- *
560
- * @returns Indeterminate.
561
- */
562
- get: function () {
563
- return this.getAttributeNS(null, 'indeterminate') !== null;
564
- },
565
- /**
566
- * Sets indeterminate.
567
- *
568
- * @param indeterminate Indeterminate.
569
- */
570
- set: function (indeterminate) {
571
- if (!indeterminate) {
572
- this.removeAttributeNS(null, 'indeterminate');
573
- }
574
- else {
575
- this.setAttributeNS(null, 'indeterminate', '');
576
- }
577
- },
578
- enumerable: false,
579
- configurable: true
580
- });
581
- Object.defineProperty(HTMLInputElement.prototype, "multiple", {
582
- /**
583
- * Returns multiple.
584
- *
585
- * @returns Multiple.
586
- */
587
- get: function () {
588
- return this.getAttributeNS(null, 'multiple') !== null;
589
- },
590
- /**
591
- * Sets multiple.
592
- *
593
- * @param multiple Multiple.
594
- */
595
- set: function (multiple) {
596
- if (!multiple) {
597
- this.removeAttributeNS(null, 'multiple');
598
- }
599
- else {
600
- this.setAttributeNS(null, 'multiple', '');
601
- }
602
- },
603
- enumerable: false,
604
- configurable: true
605
- });
606
- Object.defineProperty(HTMLInputElement.prototype, "checked", {
607
- /**
608
- * Returns checked.
609
- *
610
- * @returns Checked.
611
- */
612
- get: function () {
613
- return this.getAttributeNS(null, 'checked') !== null;
614
- },
615
- /**
616
- * Sets checked.
617
- *
618
- * @param checked Checked.
619
- */
620
- set: function (checked) {
621
- if (!checked) {
622
- this.removeAttributeNS(null, 'checked');
623
- }
624
- else {
625
- this.setAttributeNS(null, 'checked', '');
626
- }
627
- },
628
- enumerable: false,
629
- configurable: true
630
- });
631
- Object.defineProperty(HTMLInputElement.prototype, "value", {
632
- /**
633
- * Returns value.
634
- *
635
- * @returns Value.
636
- */
637
- get: function () {
638
- switch (this.type) {
639
- case 'hidden':
640
- case 'submit':
641
- case 'image':
642
- case 'reset':
643
- case 'button':
644
- return this.getAttributeNS(null, 'value') || '';
645
- case 'checkbox':
646
- case 'radio':
647
- var attritube = this.getAttributeNS(null, 'value');
648
- return attritube !== null ? attritube : 'on';
649
- case 'file':
650
- return this.files.length > 0 ? '/fake/path/' + this.files[0].name : '';
651
- }
652
- if (this._value === null) {
40
+ this._selectionStart = null;
41
+ this._selectionEnd = null;
42
+ this._selectionDirection = HTMLInputElementSelectionDirectionEnum_1.default.none;
43
+ this._validationMessage = '';
44
+ }
45
+ /**
46
+ * Returns height.
47
+ *
48
+ * @returns Height.
49
+ */
50
+ get height() {
51
+ return this._height;
52
+ }
53
+ /**
54
+ * Sets height.
55
+ *
56
+ * @param height Height.
57
+ */
58
+ set height(height) {
59
+ this._height = height;
60
+ this.setAttributeNS(null, 'height', String(height));
61
+ }
62
+ /**
63
+ * Returns width.
64
+ *
65
+ * @returns Width.
66
+ */
67
+ get width() {
68
+ return this._width;
69
+ }
70
+ /**
71
+ * Sets width.
72
+ *
73
+ * @param width Width.
74
+ */
75
+ set width(width) {
76
+ this._width = width;
77
+ this.setAttributeNS(null, 'width', String(width));
78
+ }
79
+ /**
80
+ * Returns size.
81
+ *
82
+ * @returns Size.
83
+ */
84
+ get size() {
85
+ const size = this.getAttributeNS(null, 'size');
86
+ if (size !== null) {
87
+ return parseInt(size);
88
+ }
89
+ return 20;
90
+ }
91
+ /**
92
+ * Sets size.
93
+ *
94
+ * @param size Size.
95
+ */
96
+ set size(size) {
97
+ this.setAttributeNS(null, 'size', String(size));
98
+ }
99
+ /**
100
+ * Returns minlength.
101
+ *
102
+ * @returns Min length.
103
+ */
104
+ get minLength() {
105
+ const minLength = this.getAttributeNS(null, 'minlength');
106
+ if (minLength !== null) {
107
+ return parseInt(minLength);
108
+ }
109
+ return -1;
110
+ }
111
+ /**
112
+ * Sets minlength.
113
+ *
114
+ * @param minLength Min length.
115
+ */
116
+ set minLength(minlength) {
117
+ this.setAttributeNS(null, 'minlength', String(minlength));
118
+ }
119
+ /**
120
+ * Returns maxlength.
121
+ *
122
+ * @returns Max length.
123
+ */
124
+ get maxLength() {
125
+ const maxLength = this.getAttributeNS(null, 'maxlength');
126
+ if (maxLength !== null) {
127
+ return parseInt(maxLength);
128
+ }
129
+ return -1;
130
+ }
131
+ /**
132
+ * Sets maxlength.
133
+ *
134
+ * @param maxlength Max length.
135
+ */
136
+ set maxLength(maxLength) {
137
+ this.setAttributeNS(null, 'maxlength', String(maxLength));
138
+ }
139
+ /**
140
+ * Returns type.
141
+ *
142
+ * @returns Type. Defaults to "text".
143
+ */
144
+ get type() {
145
+ return this.getAttributeNS(null, 'type') || 'text';
146
+ }
147
+ /**
148
+ * Sets type.
149
+ *
150
+ * @param type Type.
151
+ */
152
+ set type(type) {
153
+ this.setAttributeNS(null, 'type', type.toLowerCase());
154
+ }
155
+ /**
156
+ * Returns name.
157
+ *
158
+ * @returns Name.
159
+ */
160
+ get name() {
161
+ return this.getAttributeNS(null, 'name') || '';
162
+ }
163
+ /**
164
+ * Sets name.
165
+ *
166
+ * @param name Name.
167
+ */
168
+ set name(name) {
169
+ this.setAttributeNS(null, 'name', name);
170
+ }
171
+ /**
172
+ * Returns alt.
173
+ *
174
+ * @returns Alt.
175
+ */
176
+ get alt() {
177
+ return this.getAttributeNS(null, 'alt') || '';
178
+ }
179
+ /**
180
+ * Sets alt.
181
+ *
182
+ * @param alt Alt.
183
+ */
184
+ set alt(alt) {
185
+ this.setAttributeNS(null, 'alt', alt);
186
+ }
187
+ /**
188
+ * Returns min.
189
+ *
190
+ * @returns Min.
191
+ */
192
+ get min() {
193
+ return this.getAttributeNS(null, 'min') || '';
194
+ }
195
+ /**
196
+ * Sets min.
197
+ *
198
+ * @param min Min.
199
+ */
200
+ set min(min) {
201
+ this.setAttributeNS(null, 'min', min);
202
+ }
203
+ /**
204
+ * Returns max.
205
+ *
206
+ * @returns Max.
207
+ */
208
+ get max() {
209
+ return this.getAttributeNS(null, 'max') || '';
210
+ }
211
+ /**
212
+ * Sets max.
213
+ *
214
+ * @param max Max.
215
+ */
216
+ set max(max) {
217
+ this.setAttributeNS(null, 'max', max);
218
+ }
219
+ /**
220
+ * Returns pattern.
221
+ *
222
+ * @returns Pattern.
223
+ */
224
+ get pattern() {
225
+ return this.getAttributeNS(null, 'pattern') || '';
226
+ }
227
+ /**
228
+ * Sets pattern.
229
+ *
230
+ * @param pattern Pattern.
231
+ */
232
+ set pattern(pattern) {
233
+ this.setAttributeNS(null, 'pattern', pattern);
234
+ }
235
+ /**
236
+ * Returns placeholder.
237
+ *
238
+ * @returns Placeholder.
239
+ */
240
+ get placeholder() {
241
+ return this.getAttributeNS(null, 'placeholder') || '';
242
+ }
243
+ /**
244
+ * Sets placeholder.
245
+ *
246
+ * @param placeholder Placeholder.
247
+ */
248
+ set placeholder(placeholder) {
249
+ this.setAttributeNS(null, 'placeholder', placeholder);
250
+ }
251
+ /**
252
+ * Returns step.
253
+ *
254
+ * @returns Step.
255
+ */
256
+ get step() {
257
+ return this.getAttributeNS(null, 'step') || '';
258
+ }
259
+ /**
260
+ * Sets step.
261
+ *
262
+ * @param step Step.
263
+ */
264
+ set step(step) {
265
+ this.setAttributeNS(null, 'step', step);
266
+ }
267
+ /**
268
+ * Returns inputmode.
269
+ *
270
+ * @returns Inputmode.
271
+ */
272
+ get inputmode() {
273
+ return this.getAttributeNS(null, 'inputmode') || '';
274
+ }
275
+ /**
276
+ * Sets inputmode.
277
+ *
278
+ * @param inputmode Inputmode.
279
+ */
280
+ set inputmode(inputmode) {
281
+ this.setAttributeNS(null, 'inputmode', inputmode);
282
+ }
283
+ /**
284
+ * Returns accept.
285
+ *
286
+ * @returns Accept.
287
+ */
288
+ get accept() {
289
+ return this.getAttributeNS(null, 'accept') || '';
290
+ }
291
+ /**
292
+ * Sets accept.
293
+ *
294
+ * @param accept Accept.
295
+ */
296
+ set accept(accept) {
297
+ this.setAttributeNS(null, 'accept', accept);
298
+ }
299
+ /**
300
+ * Returns allowdirs.
301
+ *
302
+ * @returns Allowdirs.
303
+ */
304
+ get allowdirs() {
305
+ return this.getAttributeNS(null, 'allowdirs') || '';
306
+ }
307
+ /**
308
+ * Sets allowdirs.
309
+ *
310
+ * @param allowdirs Allowdirs.
311
+ */
312
+ set allowdirs(allowdirs) {
313
+ this.setAttributeNS(null, 'allowdirs', allowdirs);
314
+ }
315
+ /**
316
+ * Returns autocomplete.
317
+ *
318
+ * @returns Autocomplete.
319
+ */
320
+ get autocomplete() {
321
+ return this.getAttributeNS(null, 'autocomplete') || '';
322
+ }
323
+ /**
324
+ * Sets autocomplete.
325
+ *
326
+ * @param autocomplete Autocomplete.
327
+ */
328
+ set autocomplete(autocomplete) {
329
+ this.setAttributeNS(null, 'autocomplete', autocomplete);
330
+ }
331
+ /**
332
+ * Returns src.
333
+ *
334
+ * @returns Src.
335
+ */
336
+ get src() {
337
+ return this.getAttributeNS(null, 'src') || '';
338
+ }
339
+ /**
340
+ * Sets src.
341
+ *
342
+ * @param src Src.
343
+ */
344
+ set src(src) {
345
+ this.setAttributeNS(null, 'src', src);
346
+ }
347
+ /**
348
+ * Returns defaultValue.
349
+ *
350
+ * @returns Defaultvalue.
351
+ */
352
+ get defaultValue() {
353
+ return this.getAttributeNS(null, 'defaultvalue') || '';
354
+ }
355
+ /**
356
+ * Sets defaultValue.
357
+ *
358
+ * @param defaultValue Defaultvalue.
359
+ */
360
+ set defaultValue(defaultValue) {
361
+ this.setAttributeNS(null, 'defaultvalue', defaultValue);
362
+ }
363
+ /**
364
+ * Returns read only.
365
+ *
366
+ * @returns Read only.
367
+ */
368
+ get readOnly() {
369
+ return this.getAttributeNS(null, 'readonly') !== null;
370
+ }
371
+ /**
372
+ * Sets read only.
373
+ *
374
+ * @param readOnly Read only.
375
+ */
376
+ set readOnly(readOnly) {
377
+ if (!readOnly) {
378
+ this.removeAttributeNS(null, 'readonly');
379
+ }
380
+ else {
381
+ this.setAttributeNS(null, 'readonly', '');
382
+ }
383
+ }
384
+ /**
385
+ * Returns disabled.
386
+ *
387
+ * @returns Disabled.
388
+ */
389
+ get disabled() {
390
+ return this.getAttributeNS(null, 'disabled') !== null;
391
+ }
392
+ /**
393
+ * Sets disabled.
394
+ *
395
+ * @param disabled Disabled.
396
+ */
397
+ set disabled(disabled) {
398
+ if (!disabled) {
399
+ this.removeAttributeNS(null, 'disabled');
400
+ }
401
+ else {
402
+ this.setAttributeNS(null, 'disabled', '');
403
+ }
404
+ }
405
+ /**
406
+ * Returns autofocus.
407
+ *
408
+ * @returns Autofocus.
409
+ */
410
+ get autofocus() {
411
+ return this.getAttributeNS(null, 'autofocus') !== null;
412
+ }
413
+ /**
414
+ * Sets autofocus.
415
+ *
416
+ * @param autofocus Autofocus.
417
+ */
418
+ set autofocus(autofocus) {
419
+ if (!autofocus) {
420
+ this.removeAttributeNS(null, 'autofocus');
421
+ }
422
+ else {
423
+ this.setAttributeNS(null, 'autofocus', '');
424
+ }
425
+ }
426
+ /**
427
+ * Returns required.
428
+ *
429
+ * @returns Required.
430
+ */
431
+ get required() {
432
+ return this.getAttributeNS(null, 'required') !== null;
433
+ }
434
+ /**
435
+ * Sets required.
436
+ *
437
+ * @param required Required.
438
+ */
439
+ set required(required) {
440
+ if (!required) {
441
+ this.removeAttributeNS(null, 'required');
442
+ }
443
+ else {
444
+ this.setAttributeNS(null, 'required', '');
445
+ }
446
+ }
447
+ /**
448
+ * Returns indeterminate.
449
+ *
450
+ * @returns Indeterminate.
451
+ */
452
+ get indeterminate() {
453
+ return this.getAttributeNS(null, 'indeterminate') !== null;
454
+ }
455
+ /**
456
+ * Sets indeterminate.
457
+ *
458
+ * @param indeterminate Indeterminate.
459
+ */
460
+ set indeterminate(indeterminate) {
461
+ if (!indeterminate) {
462
+ this.removeAttributeNS(null, 'indeterminate');
463
+ }
464
+ else {
465
+ this.setAttributeNS(null, 'indeterminate', '');
466
+ }
467
+ }
468
+ /**
469
+ * Returns multiple.
470
+ *
471
+ * @returns Multiple.
472
+ */
473
+ get multiple() {
474
+ return this.getAttributeNS(null, 'multiple') !== null;
475
+ }
476
+ /**
477
+ * Sets multiple.
478
+ *
479
+ * @param multiple Multiple.
480
+ */
481
+ set multiple(multiple) {
482
+ if (!multiple) {
483
+ this.removeAttributeNS(null, 'multiple');
484
+ }
485
+ else {
486
+ this.setAttributeNS(null, 'multiple', '');
487
+ }
488
+ }
489
+ /**
490
+ * Returns checked.
491
+ *
492
+ * @returns Checked.
493
+ */
494
+ get checked() {
495
+ return this.getAttributeNS(null, 'checked') !== null;
496
+ }
497
+ /**
498
+ * Sets checked.
499
+ *
500
+ * @param checked Checked.
501
+ */
502
+ set checked(checked) {
503
+ if (!checked) {
504
+ this.removeAttributeNS(null, 'checked');
505
+ }
506
+ else {
507
+ this.setAttributeNS(null, 'checked', '');
508
+ }
509
+ }
510
+ /**
511
+ * Returns value.
512
+ *
513
+ * @returns Value.
514
+ */
515
+ get value() {
516
+ switch (this.type) {
517
+ case 'hidden':
518
+ case 'submit':
519
+ case 'image':
520
+ case 'reset':
521
+ case 'button':
653
522
  return this.getAttributeNS(null, 'value') || '';
654
- }
655
- return this._value;
656
- },
657
- /**
658
- * Sets value.
659
- *
660
- * @param value Value.
661
- */
662
- set: function (value) {
663
- switch (this.type) {
664
- case 'hidden':
665
- case 'submit':
666
- case 'image':
667
- case 'reset':
668
- case 'button':
669
- case 'checkbox':
670
- case 'radio':
671
- this.setAttributeNS(null, 'value', value);
672
- break;
673
- case 'file':
674
- if (value !== '') {
675
- throw new DOMException_1.default('Input elements of type "file" may only programmatically set the value to empty string.', DOMExceptionNameEnum_1.default.invalidStateError);
676
- }
677
- break;
678
- default:
679
- var oldValue = this._value;
680
- this._value = HTMLInputElementValueSanitizer_1.default.sanitize(this, value);
681
- if (oldValue !== this._value) {
682
- this._selectionStart = this._value.length;
683
- this._selectionEnd = this._value.length;
684
- this._selectionDirection = HTMLInputElementSelectionDirectionEnum_1.default.none;
685
- }
686
- break;
687
- }
688
- },
689
- enumerable: false,
690
- configurable: true
691
- });
692
- Object.defineProperty(HTMLInputElement.prototype, "selectionStart", {
693
- /**
694
- * Returns selection start.
695
- *
696
- * @returns Selection start.
697
- */
698
- get: function () {
699
- if (!this._isSelectionSupported()) {
700
- return null;
701
- }
702
- if (this._selectionStart === null) {
703
- return this.value.length;
704
- }
705
- return this._selectionStart;
706
- },
707
- /**
708
- * Sets selection start.
709
- *
710
- * @param start Start.
711
- */
712
- set: function (start) {
713
- if (!this._isSelectionSupported()) {
714
- throw new DOMException_1.default("The input element's type (".concat(this.type, ") does not support selection."), DOMExceptionNameEnum_1.default.invalidStateError);
715
- }
716
- this.setSelectionRange(start, Math.max(start, this.selectionEnd), this._selectionDirection);
717
- },
718
- enumerable: false,
719
- configurable: true
720
- });
721
- Object.defineProperty(HTMLInputElement.prototype, "selectionEnd", {
722
- /**
723
- * Returns selection end.
724
- *
725
- * @returns Selection end.
726
- */
727
- get: function () {
728
- if (!this._isSelectionSupported()) {
729
- return null;
730
- }
731
- if (this._selectionEnd === null) {
732
- return this.value.length;
733
- }
734
- return this._selectionEnd;
735
- },
736
- /**
737
- * Sets selection end.
738
- *
739
- * @param end End.
740
- */
741
- set: function (end) {
742
- if (!this._isSelectionSupported()) {
743
- throw new DOMException_1.default("The input element's type (".concat(this.type, ") does not support selection."), DOMExceptionNameEnum_1.default.invalidStateError);
744
- }
745
- this.setSelectionRange(this.selectionStart, end, this._selectionDirection);
746
- },
747
- enumerable: false,
748
- configurable: true
749
- });
750
- Object.defineProperty(HTMLInputElement.prototype, "selectionDirection", {
751
- /**
752
- * Returns selection direction.
753
- *
754
- * @returns Selection direction.
755
- */
756
- get: function () {
757
- if (!this._isSelectionSupported()) {
758
- return null;
759
- }
760
- return this._selectionDirection;
761
- },
762
- /**
763
- * Sets selection direction.
764
- *
765
- * @param direction Direction.
766
- */
767
- set: function (direction) {
768
- if (!this._isSelectionSupported()) {
769
- throw new DOMException_1.default("The input element's type (".concat(this.type, ") does not support selection."), DOMExceptionNameEnum_1.default.invalidStateError);
770
- }
771
- this.setSelectionRange(this._selectionStart, this._selectionEnd, direction);
772
- },
773
- enumerable: false,
774
- configurable: true
775
- });
776
- Object.defineProperty(HTMLInputElement.prototype, "form", {
777
- /**
778
- * Returns the parent form element.
779
- *
780
- * @returns Form.
781
- */
782
- get: function () {
783
- var parent = this.parentNode;
784
- while (parent && parent.tagName !== 'FORM') {
785
- parent = parent.parentNode;
786
- }
787
- return parent;
788
- },
789
- enumerable: false,
790
- configurable: true
791
- });
792
- Object.defineProperty(HTMLInputElement.prototype, "validity", {
793
- /**
794
- * Returns validity state.
795
- *
796
- * @returns Validity state.
797
- */
798
- get: function () {
799
- return new ValidityState_1.default(this);
800
- },
801
- enumerable: false,
802
- configurable: true
803
- });
804
- Object.defineProperty(HTMLInputElement.prototype, "willValidate", {
805
- /**
806
- * Returns "true" if it will validate.
807
- *
808
- * @returns "true" if it will validate.
809
- */
810
- get: function () {
811
- return (this.type !== 'hidden' &&
812
- this.type !== 'reset' &&
813
- this.type !== 'button' &&
814
- !this.disabled &&
815
- !this['readOnly']);
816
- },
817
- enumerable: false,
818
- configurable: true
819
- });
820
- Object.defineProperty(HTMLInputElement.prototype, "valueAsDate", {
821
- /**
822
- * Returns value as Date.
823
- *
824
- * @returns Date.
825
- */
826
- get: function () {
827
- return this.value ? new Date(this.value) : null;
828
- },
829
- enumerable: false,
830
- configurable: true
831
- });
832
- Object.defineProperty(HTMLInputElement.prototype, "valueAsNumber", {
833
- /**
834
- * Returns value as number.
835
- *
836
- * @returns Number.
837
- */
838
- get: function () {
839
- return this.value ? parseFloat(this.value) : NaN;
840
- },
841
- enumerable: false,
842
- configurable: true
843
- });
844
- Object.defineProperty(HTMLInputElement.prototype, "validationMessage", {
845
- /**
846
- * Returns validation message.
847
- *
848
- * @returns Validation message.
849
- */
850
- get: function () {
851
- return this._validationMessage;
852
- },
853
- enumerable: false,
854
- configurable: true
855
- });
523
+ case 'checkbox':
524
+ case 'radio':
525
+ const attritube = this.getAttributeNS(null, 'value');
526
+ return attritube !== null ? attritube : 'on';
527
+ case 'file':
528
+ return this.files.length > 0 ? '/fake/path/' + this.files[0].name : '';
529
+ }
530
+ if (this._value === null) {
531
+ return this.getAttributeNS(null, 'value') || '';
532
+ }
533
+ return this._value;
534
+ }
535
+ /**
536
+ * Sets value.
537
+ *
538
+ * @param value Value.
539
+ */
540
+ set value(value) {
541
+ switch (this.type) {
542
+ case 'hidden':
543
+ case 'submit':
544
+ case 'image':
545
+ case 'reset':
546
+ case 'button':
547
+ case 'checkbox':
548
+ case 'radio':
549
+ this.setAttributeNS(null, 'value', value);
550
+ break;
551
+ case 'file':
552
+ if (value !== '') {
553
+ throw new DOMException_1.default('Input elements of type "file" may only programmatically set the value to empty string.', DOMExceptionNameEnum_1.default.invalidStateError);
554
+ }
555
+ break;
556
+ default:
557
+ const oldValue = this._value;
558
+ this._value = HTMLInputElementValueSanitizer_1.default.sanitize(this, value);
559
+ if (oldValue !== this._value) {
560
+ this._selectionStart = this._value.length;
561
+ this._selectionEnd = this._value.length;
562
+ this._selectionDirection = HTMLInputElementSelectionDirectionEnum_1.default.none;
563
+ }
564
+ break;
565
+ }
566
+ }
567
+ /**
568
+ * Returns selection start.
569
+ *
570
+ * @returns Selection start.
571
+ */
572
+ get selectionStart() {
573
+ if (!this._isSelectionSupported()) {
574
+ return null;
575
+ }
576
+ if (this._selectionStart === null) {
577
+ return this.value.length;
578
+ }
579
+ return this._selectionStart;
580
+ }
581
+ /**
582
+ * Sets selection start.
583
+ *
584
+ * @param start Start.
585
+ */
586
+ set selectionStart(start) {
587
+ if (!this._isSelectionSupported()) {
588
+ throw new DOMException_1.default(`The input element's type (${this.type}) does not support selection.`, DOMExceptionNameEnum_1.default.invalidStateError);
589
+ }
590
+ this.setSelectionRange(start, Math.max(start, this.selectionEnd), this._selectionDirection);
591
+ }
592
+ /**
593
+ * Returns selection end.
594
+ *
595
+ * @returns Selection end.
596
+ */
597
+ get selectionEnd() {
598
+ if (!this._isSelectionSupported()) {
599
+ return null;
600
+ }
601
+ if (this._selectionEnd === null) {
602
+ return this.value.length;
603
+ }
604
+ return this._selectionEnd;
605
+ }
606
+ /**
607
+ * Sets selection end.
608
+ *
609
+ * @param end End.
610
+ */
611
+ set selectionEnd(end) {
612
+ if (!this._isSelectionSupported()) {
613
+ throw new DOMException_1.default(`The input element's type (${this.type}) does not support selection.`, DOMExceptionNameEnum_1.default.invalidStateError);
614
+ }
615
+ this.setSelectionRange(this.selectionStart, end, this._selectionDirection);
616
+ }
617
+ /**
618
+ * Returns selection direction.
619
+ *
620
+ * @returns Selection direction.
621
+ */
622
+ get selectionDirection() {
623
+ if (!this._isSelectionSupported()) {
624
+ return null;
625
+ }
626
+ return this._selectionDirection;
627
+ }
628
+ /**
629
+ * Sets selection direction.
630
+ *
631
+ * @param direction Direction.
632
+ */
633
+ set selectionDirection(direction) {
634
+ if (!this._isSelectionSupported()) {
635
+ throw new DOMException_1.default(`The input element's type (${this.type}) does not support selection.`, DOMExceptionNameEnum_1.default.invalidStateError);
636
+ }
637
+ this.setSelectionRange(this._selectionStart, this._selectionEnd, direction);
638
+ }
639
+ /**
640
+ * Returns the parent form element.
641
+ *
642
+ * @returns Form.
643
+ */
644
+ get form() {
645
+ let parent = this.parentNode;
646
+ while (parent && parent.tagName !== 'FORM') {
647
+ parent = parent.parentNode;
648
+ }
649
+ return parent;
650
+ }
651
+ /**
652
+ * Returns validity state.
653
+ *
654
+ * @returns Validity state.
655
+ */
656
+ get validity() {
657
+ return new ValidityState_1.default(this);
658
+ }
659
+ /**
660
+ * Returns "true" if it will validate.
661
+ *
662
+ * @returns "true" if it will validate.
663
+ */
664
+ get willValidate() {
665
+ return (this.type !== 'hidden' &&
666
+ this.type !== 'reset' &&
667
+ this.type !== 'button' &&
668
+ !this.disabled &&
669
+ !this['readOnly']);
670
+ }
671
+ /**
672
+ * Returns value as Date.
673
+ *
674
+ * @returns Date.
675
+ */
676
+ get valueAsDate() {
677
+ return this.value ? new Date(this.value) : null;
678
+ }
679
+ /**
680
+ * Returns value as number.
681
+ *
682
+ * @returns Number.
683
+ */
684
+ get valueAsNumber() {
685
+ return this.value ? parseFloat(this.value) : NaN;
686
+ }
687
+ /**
688
+ * Returns validation message.
689
+ *
690
+ * @returns Validation message.
691
+ */
692
+ get validationMessage() {
693
+ return this._validationMessage;
694
+ }
856
695
  /**
857
696
  * Sets validation message.
858
697
  *
859
698
  * @param message Message.
860
699
  */
861
- HTMLInputElement.prototype.setCustomValidity = function (message) {
700
+ setCustomValidity(message) {
862
701
  this._validationMessage = String(message);
863
- };
702
+ }
864
703
  /**
865
704
  * Reports validity by dispatching an "invalid" event.
866
705
  */
867
- HTMLInputElement.prototype.reportValidity = function () {
706
+ reportValidity() {
868
707
  if (this._validationMessage) {
869
708
  this.dispatchEvent(new Event_1.default('invalid', {
870
709
  bubbles: true,
871
710
  cancelable: true
872
711
  }));
873
712
  }
874
- };
713
+ }
875
714
  /**
876
715
  * Selects the text.
877
716
  */
878
- HTMLInputElement.prototype.select = function () {
717
+ select() {
879
718
  if (!this._isSelectionSupported()) {
880
719
  return null;
881
720
  }
@@ -883,7 +722,7 @@ var HTMLInputElement = /** @class */ (function (_super) {
883
722
  this._selectionEnd = this.value.length;
884
723
  this._selectionDirection = HTMLInputElementSelectionDirectionEnum_1.default.none;
885
724
  this.dispatchEvent(new Event_1.default('select', { bubbles: true, cancelable: true }));
886
- };
725
+ }
887
726
  /**
888
727
  * Set selection range.
889
728
  *
@@ -891,10 +730,9 @@ var HTMLInputElement = /** @class */ (function (_super) {
891
730
  * @param end End.
892
731
  * @param [direction="none"] Direction.
893
732
  */
894
- HTMLInputElement.prototype.setSelectionRange = function (start, end, direction) {
895
- if (direction === void 0) { direction = 'none'; }
733
+ setSelectionRange(start, end, direction = 'none') {
896
734
  if (!this._isSelectionSupported()) {
897
- throw new DOMException_1.default("The input element's type (".concat(this.type, ") does not support selection."), DOMExceptionNameEnum_1.default.invalidStateError);
735
+ throw new DOMException_1.default(`The input element's type (${this.type}) does not support selection.`, DOMExceptionNameEnum_1.default.invalidStateError);
898
736
  }
899
737
  this._selectionEnd = Math.min(end, this.value.length);
900
738
  this._selectionStart = Math.min(start, this._selectionEnd);
@@ -904,7 +742,7 @@ var HTMLInputElement = /** @class */ (function (_super) {
904
742
  ? direction
905
743
  : HTMLInputElementSelectionDirectionEnum_1.default.none;
906
744
  this.dispatchEvent(new Event_1.default('select', { bubbles: true, cancelable: true }));
907
- };
745
+ }
908
746
  /**
909
747
  * Set range text.
910
748
  *
@@ -914,12 +752,9 @@ var HTMLInputElement = /** @class */ (function (_super) {
914
752
  * @param [direction] Direction.
915
753
  * @param selectionMode
916
754
  */
917
- HTMLInputElement.prototype.setRangeText = function (replacement, start, end, selectionMode) {
918
- if (start === void 0) { start = null; }
919
- if (end === void 0) { end = null; }
920
- if (selectionMode === void 0) { selectionMode = HTMLInputElementSelectionModeEnum_1.default.preserve; }
755
+ setRangeText(replacement, start = null, end = null, selectionMode = HTMLInputElementSelectionModeEnum_1.default.preserve) {
921
756
  if (!this._isSelectionSupported()) {
922
- throw new DOMException_1.default("The input element's type (".concat(this.type, ") does not support selection."), DOMExceptionNameEnum_1.default.invalidStateError);
757
+ throw new DOMException_1.default(`The input element's type (${this.type}) does not support selection.`, DOMExceptionNameEnum_1.default.invalidStateError);
923
758
  }
924
759
  if (start === null) {
925
760
  start = this._selectionStart;
@@ -932,11 +767,11 @@ var HTMLInputElement = /** @class */ (function (_super) {
932
767
  }
933
768
  start = Math.min(start, this.value.length);
934
769
  end = Math.min(end, this.value.length);
935
- var val = this.value;
936
- var selectionStart = this._selectionStart;
937
- var selectionEnd = this._selectionEnd;
770
+ const val = this.value;
771
+ let selectionStart = this._selectionStart;
772
+ let selectionEnd = this._selectionEnd;
938
773
  this.value = val.slice(0, start) + replacement + val.slice(end);
939
- var newEnd = start + this.value.length;
774
+ const newEnd = start + this.value.length;
940
775
  switch (selectionMode) {
941
776
  case HTMLInputElementSelectionModeEnum_1.default.select:
942
777
  this.setSelectionRange(start, newEnd);
@@ -948,7 +783,7 @@ var HTMLInputElement = /** @class */ (function (_super) {
948
783
  this.setSelectionRange(newEnd, newEnd);
949
784
  break;
950
785
  default:
951
- var delta = replacement.length - (end - start);
786
+ const delta = replacement.length - (end - start);
952
787
  if (selectionStart > end) {
953
788
  selectionStart += delta;
954
789
  }
@@ -964,37 +799,37 @@ var HTMLInputElement = /** @class */ (function (_super) {
964
799
  this.setSelectionRange(selectionStart, selectionEnd);
965
800
  break;
966
801
  }
967
- };
802
+ }
968
803
  /**
969
804
  * Checks validity.
970
805
  *
971
806
  * @returns "true" if the field is valid.
972
807
  */
973
- HTMLInputElement.prototype.checkValidity = function () {
808
+ checkValidity() {
974
809
  return true;
975
- };
810
+ }
976
811
  /**
977
812
  * Steps up.
978
813
  *
979
814
  * @param [increment] Increment.
980
815
  */
981
- HTMLInputElement.prototype.stepUp = function (increment) {
982
- var newValue = HTMLInputElementValueStepping_1.default.step(this.type, this.value, 1, increment);
816
+ stepUp(increment) {
817
+ const newValue = HTMLInputElementValueStepping_1.default.step(this.type, this.value, 1, increment);
983
818
  if (newValue !== null) {
984
819
  this.value = newValue;
985
820
  }
986
- };
821
+ }
987
822
  /**
988
823
  * Steps down.
989
824
  *
990
825
  * @param [increment] Increment.
991
826
  */
992
- HTMLInputElement.prototype.stepDown = function (increment) {
993
- var newValue = HTMLInputElementValueStepping_1.default.step(this.type, this.value, -1, increment);
827
+ stepDown(increment) {
828
+ const newValue = HTMLInputElementValueStepping_1.default.step(this.type, this.value, -1, increment);
994
829
  if (newValue !== null) {
995
830
  this.value = newValue;
996
831
  }
997
- };
832
+ }
998
833
  /**
999
834
  * Clones a node.
1000
835
  *
@@ -1002,9 +837,8 @@ var HTMLInputElement = /** @class */ (function (_super) {
1002
837
  * @param [deep=false] "true" to clone deep.
1003
838
  * @returns Cloned node.
1004
839
  */
1005
- HTMLInputElement.prototype.cloneNode = function (deep) {
1006
- if (deep === void 0) { deep = false; }
1007
- var clone = _super.prototype.cloneNode.call(this, deep);
840
+ cloneNode(deep = false) {
841
+ const clone = super.cloneNode(deep);
1008
842
  clone.formAction = this.formAction;
1009
843
  clone.formMethod = this.formMethod;
1010
844
  clone.formNoValidate = this.formNoValidate;
@@ -1017,7 +851,7 @@ var HTMLInputElement = /** @class */ (function (_super) {
1017
851
  clone._selectionEnd = this._selectionEnd;
1018
852
  clone._selectionDirection = this._selectionDirection;
1019
853
  return clone;
1020
- };
854
+ }
1021
855
  /**
1022
856
  * Checks if private value is supported.
1023
857
  *
@@ -1040,14 +874,13 @@ var HTMLInputElement = /** @class */ (function (_super) {
1040
874
  *
1041
875
  * @returns "true" if selection is supported.
1042
876
  */
1043
- HTMLInputElement.prototype._isSelectionSupported = function () {
877
+ _isSelectionSupported() {
1044
878
  return (this.type === 'text' ||
1045
879
  this.type === 'search' ||
1046
880
  this.type === 'url' ||
1047
881
  this.type === 'tel' ||
1048
882
  this.type === 'password');
1049
- };
1050
- return HTMLInputElement;
1051
- }(HTMLElement_1.default));
883
+ }
884
+ }
1052
885
  exports.default = HTMLInputElement;
1053
886
  //# sourceMappingURL=HTMLInputElement.js.map