@remote-dom/polyfill 1.5.0 → 1.6.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.
Files changed (304) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/README.md +51 -3
  3. package/build/cjs/Attr.cjs +33 -4
  4. package/build/cjs/CharacterData.cjs +10 -0
  5. package/build/cjs/ChildNode.cjs +79 -13
  6. package/build/cjs/Comment.cjs +1 -1
  7. package/build/cjs/CustomElementRegistry.cjs +27 -2
  8. package/build/cjs/CustomEvent.cjs +2 -2
  9. package/build/cjs/Document.cjs +56 -32
  10. package/build/cjs/DocumentFragment.cjs +6 -2
  11. package/build/cjs/Element.cjs +68 -8
  12. package/build/cjs/Event.cjs +29 -27
  13. package/build/cjs/EventTarget.cjs +128 -58
  14. package/build/cjs/HTMLTemplateElement.cjs +1 -0
  15. package/build/cjs/MutationObserver.cjs +167 -1
  16. package/build/cjs/NamedNodeMap.cjs +82 -45
  17. package/build/cjs/Node.cjs +47 -11
  18. package/build/cjs/NodeList.cjs +9 -1
  19. package/build/cjs/ParentNode.cjs +319 -77
  20. package/build/cjs/SVGElement.cjs +1 -1
  21. package/build/cjs/Text.cjs +1 -1
  22. package/build/cjs/Window.cjs +131 -38
  23. package/build/cjs/attribute-reactions.cjs +20 -0
  24. package/build/cjs/constants.cjs +48 -24
  25. package/build/cjs/custom-element-reactions.cjs +52 -0
  26. package/build/cjs/dom-exception.cjs +15 -0
  27. package/build/cjs/hook-effects.cjs +51 -0
  28. package/build/cjs/names.cjs +61 -0
  29. package/build/cjs/selectors.cjs +213 -122
  30. package/build/cjs/serialization.cjs +168 -65
  31. package/build/cjs/shared.cjs +177 -28
  32. package/build/esm/Attr.mjs +34 -5
  33. package/build/esm/CharacterData.mjs +10 -0
  34. package/build/esm/ChildNode.mjs +76 -15
  35. package/build/esm/Comment.mjs +2 -2
  36. package/build/esm/CustomElementRegistry.mjs +27 -2
  37. package/build/esm/CustomEvent.mjs +2 -2
  38. package/build/esm/Document.mjs +60 -35
  39. package/build/esm/DocumentFragment.mjs +7 -3
  40. package/build/esm/Element.mjs +69 -9
  41. package/build/esm/Event.mjs +27 -27
  42. package/build/esm/EventTarget.mjs +130 -60
  43. package/build/esm/HTMLTemplateElement.mjs +2 -1
  44. package/build/esm/MutationObserver.mjs +166 -2
  45. package/build/esm/NamedNodeMap.mjs +83 -46
  46. package/build/esm/Node.mjs +48 -12
  47. package/build/esm/NodeList.mjs +9 -1
  48. package/build/esm/ParentNode.mjs +322 -81
  49. package/build/esm/SVGElement.mjs +2 -2
  50. package/build/esm/Text.mjs +2 -2
  51. package/build/esm/Window.mjs +132 -39
  52. package/build/esm/attribute-reactions.mjs +16 -0
  53. package/build/esm/constants.mjs +28 -23
  54. package/build/esm/custom-element-reactions.mjs +47 -0
  55. package/build/esm/dom-exception.mjs +11 -0
  56. package/build/esm/hook-effects.mjs +46 -0
  57. package/build/esm/names.mjs +54 -0
  58. package/build/esm/selectors.mjs +202 -124
  59. package/build/esm/serialization.mjs +169 -66
  60. package/build/esm/shared.mjs +173 -30
  61. package/build/esnext/Attr.esnext +45 -5
  62. package/build/esnext/CharacterData.esnext +10 -0
  63. package/build/esnext/ChildNode.esnext +84 -15
  64. package/build/esnext/Comment.esnext +2 -2
  65. package/build/esnext/CustomElementRegistry.esnext +42 -0
  66. package/build/esnext/CustomEvent.esnext +2 -2
  67. package/build/esnext/Document.esnext +69 -32
  68. package/build/esnext/DocumentFragment.esnext +7 -3
  69. package/build/esnext/Element.esnext +78 -9
  70. package/build/esnext/Event.esnext +36 -37
  71. package/build/esnext/EventTarget.esnext +133 -61
  72. package/build/esnext/HTMLTemplateElement.esnext +3 -1
  73. package/build/esnext/MutationObserver.esnext +163 -2
  74. package/build/esnext/NamedNodeMap.esnext +110 -42
  75. package/build/esnext/Node.esnext +50 -12
  76. package/build/esnext/NodeList.esnext +1 -1
  77. package/build/esnext/ParentNode.esnext +352 -79
  78. package/build/esnext/SVGElement.esnext +2 -2
  79. package/build/esnext/Text.esnext +2 -2
  80. package/build/esnext/Window.esnext +120 -16
  81. package/build/esnext/attribute-reactions.esnext +21 -0
  82. package/build/esnext/constants.esnext +34 -21
  83. package/build/esnext/custom-element-reactions.esnext +49 -0
  84. package/build/esnext/dom-exception.esnext +11 -0
  85. package/build/esnext/hook-effects.esnext +46 -0
  86. package/build/esnext/names.esnext +61 -0
  87. package/build/esnext/selectors.esnext +202 -100
  88. package/build/esnext/serialization.esnext +171 -48
  89. package/build/esnext/shared.esnext +181 -34
  90. package/build/tsconfig.tsbuildinfo +1 -1
  91. package/build/typescript/Attr.d.ts +6 -4
  92. package/build/typescript/Attr.d.ts.map +1 -1
  93. package/build/typescript/CharacterData.d.ts.map +1 -1
  94. package/build/typescript/ChildNode.d.ts +5 -0
  95. package/build/typescript/ChildNode.d.ts.map +1 -1
  96. package/build/typescript/ClipboardEvent.d.ts.map +1 -1
  97. package/build/typescript/Comment.d.ts +2 -2
  98. package/build/typescript/Comment.d.ts.map +1 -1
  99. package/build/typescript/CustomElementRegistry.d.ts +1 -0
  100. package/build/typescript/CustomElementRegistry.d.ts.map +1 -1
  101. package/build/typescript/CustomEvent.d.ts.map +1 -1
  102. package/build/typescript/Document.d.ts +10 -5
  103. package/build/typescript/Document.d.ts.map +1 -1
  104. package/build/typescript/DocumentFragment.d.ts +2 -1
  105. package/build/typescript/DocumentFragment.d.ts.map +1 -1
  106. package/build/typescript/Element.d.ts +16 -7
  107. package/build/typescript/Element.d.ts.map +1 -1
  108. package/build/typescript/ErrorEvent.d.ts.map +1 -1
  109. package/build/typescript/Event.d.ts +9 -10
  110. package/build/typescript/Event.d.ts.map +1 -1
  111. package/build/typescript/EventTarget.d.ts +20 -3
  112. package/build/typescript/EventTarget.d.ts.map +1 -1
  113. package/build/typescript/FocusEvent.d.ts.map +1 -1
  114. package/build/typescript/HTMLTemplateElement.d.ts.map +1 -1
  115. package/build/typescript/MutationObserver.d.ts +42 -0
  116. package/build/typescript/MutationObserver.d.ts.map +1 -1
  117. package/build/typescript/NamedNodeMap.d.ts +5 -3
  118. package/build/typescript/NamedNodeMap.d.ts.map +1 -1
  119. package/build/typescript/Node.d.ts +4 -3
  120. package/build/typescript/Node.d.ts.map +1 -1
  121. package/build/typescript/NodeList.d.ts +3 -2
  122. package/build/typescript/NodeList.d.ts.map +1 -1
  123. package/build/typescript/ParentNode.d.ts +29 -10
  124. package/build/typescript/ParentNode.d.ts.map +1 -1
  125. package/build/typescript/PromiseRejectionEvent.d.ts.map +1 -1
  126. package/build/typescript/SVGElement.d.ts +1 -1
  127. package/build/typescript/SVGElement.d.ts.map +1 -1
  128. package/build/typescript/Text.d.ts +1 -1
  129. package/build/typescript/Text.d.ts.map +1 -1
  130. package/build/typescript/ToggleEvent.d.ts.map +1 -1
  131. package/build/typescript/Window.d.ts +5 -1
  132. package/build/typescript/Window.d.ts.map +1 -1
  133. package/build/typescript/attribute-reactions.d.ts +4 -0
  134. package/build/typescript/attribute-reactions.d.ts.map +1 -0
  135. package/build/typescript/constants.d.ts +27 -18
  136. package/build/typescript/constants.d.ts.map +1 -1
  137. package/build/typescript/custom-element-reactions.d.ts +6 -0
  138. package/build/typescript/custom-element-reactions.d.ts.map +1 -0
  139. package/build/typescript/dom-exception.d.ts +2 -0
  140. package/build/typescript/dom-exception.d.ts.map +1 -0
  141. package/build/typescript/extensions.d.ts +4 -0
  142. package/build/typescript/extensions.d.ts.map +1 -0
  143. package/build/typescript/hook-effects.d.ts +6 -0
  144. package/build/typescript/hook-effects.d.ts.map +1 -0
  145. package/build/typescript/hooks.d.ts +3 -3
  146. package/build/typescript/hooks.d.ts.map +1 -1
  147. package/build/typescript/index.d.ts +1 -0
  148. package/build/typescript/index.d.ts.map +1 -1
  149. package/build/typescript/names.d.ts +11 -0
  150. package/build/typescript/names.d.ts.map +1 -0
  151. package/build/typescript/selectors.d.ts +21 -22
  152. package/build/typescript/selectors.d.ts.map +1 -1
  153. package/build/typescript/serialization.d.ts.map +1 -1
  154. package/build/typescript/shared.d.ts +10 -0
  155. package/build/typescript/shared.d.ts.map +1 -1
  156. package/build/typescript/tests/ChildNode.test.d.ts +2 -0
  157. package/build/typescript/tests/ChildNode.test.d.ts.map +1 -0
  158. package/build/typescript/tests/MutationObserver.test.d.ts +2 -0
  159. package/build/typescript/tests/MutationObserver.test.d.ts.map +1 -0
  160. package/build/typescript/tests/adopt-inserted-subtrees.test.d.ts +2 -0
  161. package/build/typescript/tests/adopt-inserted-subtrees.test.d.ts.map +1 -0
  162. package/build/typescript/tests/attr-mutation.test.d.ts +2 -0
  163. package/build/typescript/tests/attr-mutation.test.d.ts.map +1 -0
  164. package/build/typescript/tests/child-node-before-after.test.d.ts +2 -0
  165. package/build/typescript/tests/child-node-before-after.test.d.ts.map +1 -0
  166. package/build/typescript/tests/child-node-replace-with.test.d.ts +2 -0
  167. package/build/typescript/tests/child-node-replace-with.test.d.ts.map +1 -0
  168. package/build/typescript/tests/clone-import-namespaces.test.d.ts +2 -0
  169. package/build/typescript/tests/clone-import-namespaces.test.d.ts.map +1 -0
  170. package/build/typescript/tests/constants.test.d.ts +2 -0
  171. package/build/typescript/tests/constants.test.d.ts.map +1 -0
  172. package/build/typescript/tests/create-element-namespaces.test.d.ts +2 -0
  173. package/build/typescript/tests/create-element-namespaces.test.d.ts.map +1 -0
  174. package/build/typescript/tests/create-text-node.test.d.ts +2 -0
  175. package/build/typescript/tests/create-text-node.test.d.ts.map +1 -0
  176. package/build/typescript/tests/custom-element-reactions.test.d.ts +2 -0
  177. package/build/typescript/tests/custom-element-reactions.test.d.ts.map +1 -0
  178. package/build/typescript/tests/custom-element-registry.test.d.ts +2 -0
  179. package/build/typescript/tests/custom-element-registry.test.d.ts.map +1 -0
  180. package/build/typescript/tests/custom-event.test.d.ts +2 -0
  181. package/build/typescript/tests/custom-event.test.d.ts.map +1 -0
  182. package/build/typescript/tests/document-clone-import-contract.test.d.ts +2 -0
  183. package/build/typescript/tests/document-clone-import-contract.test.d.ts.map +1 -0
  184. package/build/typescript/tests/document.test.d.ts +2 -0
  185. package/build/typescript/tests/document.test.d.ts.map +1 -0
  186. package/build/typescript/tests/dom-mutation-selector-errors.test.d.ts +2 -0
  187. package/build/typescript/tests/dom-mutation-selector-errors.test.d.ts.map +1 -0
  188. package/build/typescript/tests/event-dispatch.test.d.ts +2 -0
  189. package/build/typescript/tests/event-dispatch.test.d.ts.map +1 -0
  190. package/build/typescript/tests/event-target.test.d.ts +2 -0
  191. package/build/typescript/tests/event-target.test.d.ts.map +1 -0
  192. package/build/typescript/tests/event.test.d.ts +2 -0
  193. package/build/typescript/tests/event.test.d.ts.map +1 -0
  194. package/build/typescript/tests/extensions.test.d.ts +2 -0
  195. package/build/typescript/tests/extensions.test.d.ts.map +1 -0
  196. package/build/typescript/tests/get-elements-by-tag-name.test.d.ts +2 -0
  197. package/build/typescript/tests/get-elements-by-tag-name.test.d.ts.map +1 -0
  198. package/build/typescript/tests/getElementsByClassName.test.d.ts +2 -0
  199. package/build/typescript/tests/getElementsByClassName.test.d.ts.map +1 -0
  200. package/build/typescript/tests/hooks.test.d.ts +2 -0
  201. package/build/typescript/tests/hooks.test.d.ts.map +1 -0
  202. package/build/typescript/tests/inner-html-parsing.test.d.ts +2 -0
  203. package/build/typescript/tests/inner-html-parsing.test.d.ts.map +1 -0
  204. package/build/typescript/tests/is-default-namespace.test.d.ts +2 -0
  205. package/build/typescript/tests/is-default-namespace.test.d.ts.map +1 -0
  206. package/build/typescript/tests/name-and-namespace-normalization.test.d.ts +2 -0
  207. package/build/typescript/tests/name-and-namespace-normalization.test.d.ts.map +1 -0
  208. package/build/typescript/tests/named-node-map.test.d.ts +2 -0
  209. package/build/typescript/tests/named-node-map.test.d.ts.map +1 -0
  210. package/build/typescript/tests/namespaced-attribute-reactions.test.d.ts +2 -0
  211. package/build/typescript/tests/namespaced-attribute-reactions.test.d.ts.map +1 -0
  212. package/build/typescript/tests/node.test.d.ts +2 -0
  213. package/build/typescript/tests/node.test.d.ts.map +1 -0
  214. package/build/typescript/tests/parent-node-mutation-return-values.test.d.ts +2 -0
  215. package/build/typescript/tests/parent-node-mutation-return-values.test.d.ts.map +1 -0
  216. package/build/typescript/tests/parent-node-mutation-validation.test.d.ts +2 -0
  217. package/build/typescript/tests/parent-node-mutation-validation.test.d.ts.map +1 -0
  218. package/build/typescript/tests/parent-node.test.d.ts +2 -0
  219. package/build/typescript/tests/parent-node.test.d.ts.map +1 -0
  220. package/build/typescript/tests/serialization-template.test.d.ts +2 -0
  221. package/build/typescript/tests/serialization-template.test.d.ts.map +1 -0
  222. package/build/typescript/tests/slot-attribute.test.d.ts +2 -0
  223. package/build/typescript/tests/slot-attribute.test.d.ts.map +1 -0
  224. package/build/typescript/tests/text-content.test.d.ts +2 -0
  225. package/build/typescript/tests/text-content.test.d.ts.map +1 -0
  226. package/build/typescript/tests/toggle-attribute.test.d.ts +2 -0
  227. package/build/typescript/tests/toggle-attribute.test.d.ts.map +1 -0
  228. package/build/typescript/tests/wide-tree-traversal.test.d.ts +2 -0
  229. package/build/typescript/tests/wide-tree-traversal.test.d.ts.map +1 -0
  230. package/build/typescript/tests/window-set-global.test.d.ts +2 -0
  231. package/build/typescript/tests/window-set-global.test.d.ts.map +1 -0
  232. package/package.json +1 -1
  233. package/source/Attr.ts +60 -8
  234. package/source/CharacterData.ts +13 -0
  235. package/source/ChildNode.ts +107 -14
  236. package/source/Comment.ts +2 -2
  237. package/source/CustomElementRegistry.ts +56 -0
  238. package/source/CustomEvent.ts +2 -2
  239. package/source/Document.ts +104 -38
  240. package/source/DocumentFragment.ts +15 -3
  241. package/source/Element.ts +129 -14
  242. package/source/Event.ts +34 -32
  243. package/source/EventTarget.ts +203 -79
  244. package/source/HTMLTemplateElement.ts +2 -1
  245. package/source/MutationObserver.ts +279 -1
  246. package/source/NamedNodeMap.ts +141 -60
  247. package/source/Node.ts +70 -14
  248. package/source/NodeList.ts +13 -3
  249. package/source/ParentNode.ts +500 -88
  250. package/source/SVGElement.ts +2 -2
  251. package/source/Text.ts +2 -2
  252. package/source/Window.ts +156 -17
  253. package/source/attribute-reactions.ts +32 -0
  254. package/source/constants.ts +40 -17
  255. package/source/custom-element-reactions.ts +64 -0
  256. package/source/dom-exception.ts +14 -0
  257. package/source/extensions.ts +4 -0
  258. package/source/hook-effects.ts +56 -0
  259. package/source/hooks.ts +11 -3
  260. package/source/index.ts +1 -0
  261. package/source/names.ts +94 -0
  262. package/source/selectors.ts +301 -138
  263. package/source/serialization.ts +224 -66
  264. package/source/shared.ts +269 -40
  265. package/source/tests/ChildNode.test.ts +178 -0
  266. package/source/tests/MutationObserver.test.ts +303 -0
  267. package/source/tests/adopt-inserted-subtrees.test.ts +584 -0
  268. package/source/tests/attr-mutation.test.ts +112 -0
  269. package/source/tests/child-node-before-after.test.ts +421 -0
  270. package/source/tests/child-node-replace-with.test.ts +251 -0
  271. package/source/tests/clone-import-namespaces.test.ts +365 -0
  272. package/source/tests/constants.test.ts +46 -0
  273. package/source/tests/create-element-namespaces.test.ts +142 -0
  274. package/source/tests/create-text-node.test.ts +38 -0
  275. package/source/tests/custom-element-reactions.test.ts +600 -0
  276. package/source/tests/custom-element-registry.test.ts +137 -0
  277. package/source/tests/custom-event.test.ts +26 -0
  278. package/source/tests/document-clone-import-contract.test.ts +77 -0
  279. package/source/tests/document.test.ts +122 -0
  280. package/source/tests/dom-mutation-selector-errors.test.ts +484 -0
  281. package/source/tests/event-dispatch.test.ts +270 -0
  282. package/source/tests/event-target.test.ts +208 -0
  283. package/source/tests/event.test.ts +98 -0
  284. package/source/tests/extensions.test.ts +159 -0
  285. package/source/tests/get-elements-by-tag-name.test.ts +79 -0
  286. package/source/tests/getElementsByClassName.test.ts +109 -0
  287. package/source/tests/hooks.test.ts +43 -0
  288. package/source/tests/inner-html-parsing.test.ts +461 -0
  289. package/source/tests/is-default-namespace.test.ts +111 -0
  290. package/source/tests/name-and-namespace-normalization.test.ts +319 -0
  291. package/source/tests/named-node-map.test.ts +122 -0
  292. package/source/tests/namespaced-attribute-reactions.test.ts +141 -0
  293. package/source/tests/node.test.ts +56 -0
  294. package/source/tests/parent-node-mutation-return-values.test.ts +63 -0
  295. package/source/tests/parent-node-mutation-validation.test.ts +362 -0
  296. package/source/tests/parent-node.test.ts +169 -0
  297. package/source/tests/selectors.test.ts +533 -22
  298. package/source/tests/serialization-template.test.ts +232 -0
  299. package/source/tests/slot-attribute.test.ts +133 -0
  300. package/source/tests/text-content.test.ts +440 -0
  301. package/source/tests/toggle-attribute.test.ts +113 -0
  302. package/source/tests/wide-tree-traversal.test.ts +699 -0
  303. package/source/tests/window-set-global.test.ts +321 -0
  304. package/tsconfig.json +1 -1
@@ -1,4 +1,5 @@
1
1
  export declare const NAME: unique symbol;
2
+ export declare const PREFIX: unique symbol;
2
3
  export declare const VALUE: unique symbol;
3
4
  export declare const NS: unique symbol;
4
5
  export declare const OWNER_ELEMENT: unique symbol;
@@ -8,31 +9,39 @@ export declare const PREV: unique symbol;
8
9
  export declare const NEXT: unique symbol;
9
10
  export declare const CHILD: unique symbol;
10
11
  export declare const PARENT: unique symbol;
12
+ export declare const HOST: unique symbol;
11
13
  export declare const DATA: unique symbol;
12
14
  export declare const USER_PROPERTIES: unique symbol;
13
15
  export declare const LISTENERS: unique symbol;
14
16
  export declare const IS_TRUSTED: unique symbol;
15
17
  export declare const PATH: unique symbol;
16
18
  export declare const STOP_IMMEDIATE_PROPAGATION: unique symbol;
19
+ export declare const DISPATCHING: unique symbol;
17
20
  export declare const CONTENT: unique symbol;
18
21
  export declare const HOOKS: unique symbol;
22
+ export declare const EXTENSIONS: unique symbol;
23
+ export declare const HOOKS_DISPATCH: unique symbol;
19
24
  export declare const IS_CONNECTED: unique symbol;
20
- export declare const enum NodeType {
21
- NODE = 0,
22
- ELEMENT_NODE = 1,
23
- ATTRIBUTE_NODE = 2,
24
- TEXT_NODE = 3,
25
- CDATA_SECTION_NODE = 4,
26
- ENTITY_REFERENCE_NODE = 5,
27
- ENTITY_NODE = 6,
28
- PROCESSING_INSTRUCTION_NODE = 7,
29
- COMMENT_NODE = 8,
30
- DOCUMENT_NODE = 9,
31
- DOCUMENT_TYPE_NODE = 10,
32
- DOCUMENT_FRAGMENT_NODE = 11
33
- }
34
- export declare const enum NamespaceURI {
35
- XHTML = "http://www.w3.org/1999/xhtml",
36
- SVG = "http://www.w3.org/2000/svg"
37
- }
25
+ export declare const CREATE_ELEMENT: unique symbol;
26
+ export declare const NODE_TYPE_NODE = 0;
27
+ export declare const NODE_TYPE_ELEMENT = 1;
28
+ export declare const NODE_TYPE_ATTRIBUTE = 2;
29
+ export declare const NODE_TYPE_TEXT = 3;
30
+ export declare const NODE_TYPE_CDATA_SECTION = 4;
31
+ export declare const NODE_TYPE_ENTITY_REFERENCE = 5;
32
+ export declare const NODE_TYPE_ENTITY = 6;
33
+ export declare const NODE_TYPE_PROCESSING_INSTRUCTION = 7;
34
+ export declare const NODE_TYPE_COMMENT = 8;
35
+ export declare const NODE_TYPE_DOCUMENT = 9;
36
+ export declare const NODE_TYPE_DOCUMENT_TYPE = 10;
37
+ export declare const NODE_TYPE_DOCUMENT_FRAGMENT = 11;
38
+ export type NodeType = number;
39
+ export declare const HTML_NAMESPACE = "http://www.w3.org/1999/xhtml";
40
+ export declare const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
41
+ export declare const XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
42
+ export declare const XMLNS_NAMESPACE = "http://www.w3.org/2000/xmlns/";
43
+ export type NamespaceURI = string | null;
44
+ export declare function splitOnASCIIWhitespace(value: string): string[];
45
+ export declare function asciiLowercase(value: string): string;
46
+ export declare function asciiUppercase(value: string): string;
38
47
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../source/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,eAAiB,CAAC;AACnC,eAAO,MAAM,KAAK,eAAkB,CAAC;AACrC,eAAO,MAAM,EAAE,eAAe,CAAC;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AM,cAAc,iCAAiC,CAAC;AAC7D,eAAO,MAAM,aAAa,+BAA+B,CAAC;AAC1D,eAAO,MAAM,aAAa,yCAAyC,CAAC;AACpE,eAAO,MAAM,eAAe,kCAAkC,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;AAEzC,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,YAEnD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,UAI3C;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,UAI3C"}
@@ -0,0 +1,6 @@
1
+ type CustomElementReaction = () => void;
2
+ type ReactionTarget = object;
3
+ export declare function enqueueCustomElementReaction(target: ReactionTarget, reaction: CustomElementReaction): void;
4
+ export declare function performWithCustomElementReactions<T>(mutation: () => T): T;
5
+ export {};
6
+ //# sourceMappingURL=custom-element-reactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-element-reactions.d.ts","sourceRoot":"","sources":["../../source/custom-element-reactions.ts"],"names":[],"mappings":"AAAA,KAAK,qBAAqB,GAAG,MAAM,IAAI,CAAC;AACxC,KAAK,cAAc,GAAG,MAAM,CAAC;AAQ7B,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,qBAAqB,QAMhC;AAED,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAkBzE"}
@@ -0,0 +1,2 @@
1
+ export declare function createDOMException(message: string, name: string): DOMException;
2
+ //# sourceMappingURL=dom-exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom-exception.d.ts","sourceRoot":"","sources":["../../source/dom-exception.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,GACX,YAAY,CAUd"}
@@ -0,0 +1,4 @@
1
+ import type { Hooks } from './hooks.ts';
2
+ import type { Window } from './Window.ts';
3
+ export type WindowExtension = (window: Window) => Partial<Hooks> | void;
4
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../source/extensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Node } from './Node.ts';
2
+ type HookEffect = readonly [run: () => void, publishes?: Node];
3
+ export declare function performHookEffects(effects: readonly HookEffect[]): void;
4
+ export declare function isCoveredByPendingPublication(node: Node): boolean;
5
+ export type { HookEffect };
6
+ //# sourceMappingURL=hook-effects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook-effects.d.ts","sourceRoot":"","sources":["../../source/hook-effects.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAEpC,KAAK,UAAU,GAAG,SAAS,CAAC,GAAG,EAAE,MAAM,IAAI,EAAE,SAAS,CAAC,EAAE,IAAI,CAAC,CAAC;AAM/D,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,QAmChE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,IAAI,WAOvD;AAED,YAAY,EAAC,UAAU,EAAC,CAAC"}
@@ -3,9 +3,9 @@ export interface Hooks {
3
3
  setAttribute(element: Element, name: string, value: string, ns?: string | null): void;
4
4
  removeAttribute(element: Element, name: string, ns?: string | null): void;
5
5
  createText(text: Text, data: string): void;
6
- setText(text: Text, data: string): void;
7
- insertChild(parent: Element, node: Element | Text, index: number): void;
8
- removeChild(parent: Element, node: Element | Text, index: number): void;
6
+ setText(text: Text | Comment, data: string): void;
7
+ insertChild(parent: Element, node: Element | Text | Comment, index: number): void;
8
+ removeChild(parent: Element, node: Element | Text | Comment, index: number): void;
9
9
  addEventListener(element: EventTarget, type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
10
10
  removeEventListener(element: EventTarget, type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | EventListenerOptions): void;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../source/hooks.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1D,YAAY,CACV,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GACjB,IAAI,CAAC;IACR,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1E,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACxE,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACxE,gBAAgB,CACd,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kCAAkC,GAAG,IAAI,EACnD,OA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AG,uBAAuB,GAC1C,IAAI,CAAC;IACR,mBAAmB,CACjB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kCAAkC,GAAG,IAAI,EACnD,OAAO,CAAC,EAAE,OAAO,GAAG,oBAAoB,GACvC,IAAI,CAAC;CACT"}
@@ -1,4 +1,5 @@
1
1
  export { type Hooks } from './hooks.ts';
2
+ export { type WindowExtension } from './extensions.ts';
2
3
  export { HOOKS } from './constants.ts';
3
4
  export { Window } from './Window.ts';
4
5
  export { HTMLElement } from './HTMLElement.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,YAAY,CAAC;AACtC,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,KAAK,EAAC,MAAM,YAAY,CAAC;AACtC,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAC,MAAM,EAAC,MAAM,aAAa,CAAC;AACnC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type NamespaceURI } from './constants.ts';
2
+ export declare function normalizeNamespace(namespace: unknown): NamespaceURI;
3
+ export declare function validateElementLocalName(name: string): void;
4
+ export declare function validateAttributeLocalName(name: string): void;
5
+ export declare function validateAndExtractQualifiedName(namespaceValue: unknown, qualifiedNameValue: unknown, kind: 'element' | 'attribute'): {
6
+ namespace: NamespaceURI;
7
+ qualifiedName: string;
8
+ prefix: string | null;
9
+ localName: string;
10
+ };
11
+ //# sourceMappingURL=names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../source/names.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAQxB,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,GAAG,YAAY,CAKnE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,QAIpD;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,QAItD;AAED,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,OAAO,EACvB,kBAAkB,EAAE,OAAO,EAC3B,IAAI,EAAE,SAAS,GAAG,WAAW;;;;;EAuD9B"}
@@ -1,32 +1,31 @@
1
+ import { NodeList } from './NodeList.ts';
1
2
  import type { Element } from './Element.ts';
2
3
  import type { ParentNode } from './ParentNode.ts';
3
- declare const enum Combinator {
4
- Descendant = 0,
5
- Child = 1,
6
- Sibling = 2,
7
- Adjacent = 3,
8
- Inner = 4
9
- }
10
- declare const enum MatcherType {
11
- Unknown = 0,
12
- Element = 1,
13
- Id = 2,
14
- Class = 3,
15
- Attribute = 4,
16
- Pseudo = 5,
17
- Function = 6
18
- }
19
- interface Part {
4
+ export declare const COMBINATOR_DESCENDANT = 0;
5
+ export declare const COMBINATOR_CHILD = 1;
6
+ export declare const COMBINATOR_SIBLING = 2;
7
+ export declare const COMBINATOR_ADJACENT = 3;
8
+ export declare const COMBINATOR_INNER = 4;
9
+ export type Combinator = typeof COMBINATOR_DESCENDANT | typeof COMBINATOR_CHILD | typeof COMBINATOR_SIBLING | typeof COMBINATOR_ADJACENT | typeof COMBINATOR_INNER;
10
+ export declare const MATCHER_UNKNOWN = 0;
11
+ export declare const MATCHER_ELEMENT = 1;
12
+ export declare const MATCHER_ID = 2;
13
+ export declare const MATCHER_CLASS = 3;
14
+ export declare const MATCHER_ATTRIBUTE = 4;
15
+ export declare const MATCHER_PSEUDO = 5;
16
+ export declare const MATCHER_FUNCTION = 6;
17
+ export declare const MATCHER_SCOPE = 7;
18
+ export type MatcherType = typeof MATCHER_UNKNOWN | typeof MATCHER_ELEMENT | typeof MATCHER_ID | typeof MATCHER_CLASS | typeof MATCHER_ATTRIBUTE | typeof MATCHER_PSEUDO | typeof MATCHER_FUNCTION | typeof MATCHER_SCOPE;
19
+ export interface Part {
20
20
  combinator: Combinator;
21
21
  matchers: Matcher[];
22
22
  }
23
- interface Matcher {
23
+ export interface Matcher {
24
24
  type: MatcherType;
25
25
  name: string;
26
26
  value?: string;
27
27
  }
28
- export declare function querySelector(within: ParentNode, selector: string): null;
29
- export declare function querySelectorAll(within: ParentNode, selector: string): Element[];
30
- export declare function parseSelector(selector: string): Part[];
31
- export {};
28
+ export declare function querySelector(within: ParentNode, selector: string | Matcher[]): Element | null;
29
+ export declare function querySelectorAll(within: ParentNode, selector: string | Matcher[]): NodeList<Element>;
30
+ export declare function parseSelector(selector: string, insideHas?: boolean, allowLeadingCombinator?: boolean): Part[];
32
31
  //# sourceMappingURL=selectors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../../source/selectors.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAEhD,mBAAW,UAAU;IACnB,UAAU,IAAA;IACV,KAAK,IAAA;IACL,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,KAAK,IAAA;CACN;AAED,mBAAW,WAAW;IACpB,OAAO,IAAA;IACP,OAAO,IAAA;IACP,EAAE,IAAA;IACF,KAAK,IAAA;IACL,SAAS,IAAA;IACT,MAAM,IAAA;IACN,QAAQ,IAAA;CACT;AAED,UAAU,IAAI;IACZ,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,OA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GACnB,OAAO,eAAe,GACtB,OAAO,eAAe,GACtB,OAAO,UAAU,GACjB,OAAO,aAAa,GACpB,OAAO,iBAAiB,GACxB,OAAO,cAAc,GACrB,OAAO,gBAAgB,GACvB,OAAO,aAAa,CAAC;AAEzB,MAAM,WAAW,IAAI;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA2CD,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,MAAM,GAAG,OAAO,EAAE,GAC3B,OAAO,GAAG,IAAI,CAehB;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,MAAM,GAAG,OAAO,EAAE,GAC3B,QAAQ,CAAC,OAAO,CAAC,CAcnB;AAED,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,SAAS,UAAQ,EACjB,sBAAsB,UAAQ,UA0G/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../source/serialization.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAGpC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAiBhD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,oDA8BxD;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,UAQvD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,UAsCvC"}
1
+ {"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../source/serialization.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAGpC,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAsFhD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,oDA2ExD;AAOD,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,UAEvD;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,UAEvC"}
@@ -4,15 +4,25 @@ import type { Node } from './Node.ts';
4
4
  import type { Comment } from './Comment.ts';
5
5
  import type { ParentNode } from './ParentNode.ts';
6
6
  import type { Element } from './Element.ts';
7
+ import type { Attr } from './Attr.ts';
7
8
  import type { CharacterData } from './CharacterData.ts';
8
9
  import type { Text } from './Text.ts';
10
+ export declare function isAttributeNode(node: Node): node is Attr;
9
11
  export declare function isCharacterData(node: Node): node is CharacterData;
10
12
  export declare function isTextNode(node: Node): node is Text;
11
13
  export declare function isCommentNode(node: Node): node is Comment;
12
14
  export declare function isElementNode(node: Node): node is Element;
13
15
  export declare function isDocumentFragmentNode(node: Node): node is DocumentFragment;
14
16
  export declare function isParentNode(node: Node): node is ParentNode;
17
+ export declare function collectAdoptionSnapshot(root: Node): {
18
+ nodes: Node[];
19
+ treeNodes: Node[];
20
+ };
21
+ export declare function adoptNodes(nodes: Node[], document: Document): void;
15
22
  export declare function cloneNode(node: Node, deep?: boolean, document?: Document): Node;
23
+ export declare function getElementById(within: ParentNode, elementId: string): Element | null;
24
+ export declare function getElementsByClassName(within: ParentNode, classNames: string): import("./NodeList.ts").NodeList<Element>;
25
+ export declare function getElementsByTagName(within: ParentNode, qualifiedName: string): Element[];
16
26
  export declare function descendants(node: Node): Node[];
17
27
  export declare function selfAndDescendants(node: Node): Node[];
18
28
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../source/shared.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;A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AE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAKnE;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,6CAO5E;AAED,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,UAAU,EAClB,aAAa,EAAE,MAAM,aAoBtB;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,IAAI,UAmBrC;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,UAI5C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ChildNode.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChildNode.test.d.ts","sourceRoot":"","sources":["../../../source/tests/ChildNode.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MutationObserver.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MutationObserver.test.d.ts","sourceRoot":"","sources":["../../../source/tests/MutationObserver.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=adopt-inserted-subtrees.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adopt-inserted-subtrees.test.d.ts","sourceRoot":"","sources":["../../../source/tests/adopt-inserted-subtrees.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=attr-mutation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attr-mutation.test.d.ts","sourceRoot":"","sources":["../../../source/tests/attr-mutation.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=child-node-before-after.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-node-before-after.test.d.ts","sourceRoot":"","sources":["../../../source/tests/child-node-before-after.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=child-node-replace-with.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-node-replace-with.test.d.ts","sourceRoot":"","sources":["../../../source/tests/child-node-replace-with.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clone-import-namespaces.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clone-import-namespaces.test.d.ts","sourceRoot":"","sources":["../../../source/tests/clone-import-namespaces.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=constants.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.test.d.ts","sourceRoot":"","sources":["../../../source/tests/constants.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-element-namespaces.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-element-namespaces.test.d.ts","sourceRoot":"","sources":["../../../source/tests/create-element-namespaces.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=create-text-node.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-text-node.test.d.ts","sourceRoot":"","sources":["../../../source/tests/create-text-node.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=custom-element-reactions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-element-reactions.test.d.ts","sourceRoot":"","sources":["../../../source/tests/custom-element-reactions.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=custom-element-registry.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-element-registry.test.d.ts","sourceRoot":"","sources":["../../../source/tests/custom-element-registry.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=custom-event.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-event.test.d.ts","sourceRoot":"","sources":["../../../source/tests/custom-event.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=document-clone-import-contract.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-clone-import-contract.test.d.ts","sourceRoot":"","sources":["../../../source/tests/document-clone-import-contract.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=document.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document.test.d.ts","sourceRoot":"","sources":["../../../source/tests/document.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dom-mutation-selector-errors.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dom-mutation-selector-errors.test.d.ts","sourceRoot":"","sources":["../../../source/tests/dom-mutation-selector-errors.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=event-dispatch.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-dispatch.test.d.ts","sourceRoot":"","sources":["../../../source/tests/event-dispatch.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=event-target.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-target.test.d.ts","sourceRoot":"","sources":["../../../source/tests/event-target.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=event.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.test.d.ts","sourceRoot":"","sources":["../../../source/tests/event.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=extensions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.test.d.ts","sourceRoot":"","sources":["../../../source/tests/extensions.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=get-elements-by-tag-name.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-elements-by-tag-name.test.d.ts","sourceRoot":"","sources":["../../../source/tests/get-elements-by-tag-name.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getElementsByClassName.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getElementsByClassName.test.d.ts","sourceRoot":"","sources":["../../../source/tests/getElementsByClassName.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=hooks.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.test.d.ts","sourceRoot":"","sources":["../../../source/tests/hooks.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=inner-html-parsing.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inner-html-parsing.test.d.ts","sourceRoot":"","sources":["../../../source/tests/inner-html-parsing.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=is-default-namespace.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-default-namespace.test.d.ts","sourceRoot":"","sources":["../../../source/tests/is-default-namespace.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=name-and-namespace-normalization.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"name-and-namespace-normalization.test.d.ts","sourceRoot":"","sources":["../../../source/tests/name-and-namespace-normalization.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=named-node-map.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"named-node-map.test.d.ts","sourceRoot":"","sources":["../../../source/tests/named-node-map.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=namespaced-attribute-reactions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespaced-attribute-reactions.test.d.ts","sourceRoot":"","sources":["../../../source/tests/namespaced-attribute-reactions.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=node.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.test.d.ts","sourceRoot":"","sources":["../../../source/tests/node.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parent-node-mutation-return-values.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-node-mutation-return-values.test.d.ts","sourceRoot":"","sources":["../../../source/tests/parent-node-mutation-return-values.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parent-node-mutation-validation.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-node-mutation-validation.test.d.ts","sourceRoot":"","sources":["../../../source/tests/parent-node-mutation-validation.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parent-node.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parent-node.test.d.ts","sourceRoot":"","sources":["../../../source/tests/parent-node.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=serialization-template.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serialization-template.test.d.ts","sourceRoot":"","sources":["../../../source/tests/serialization-template.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=slot-attribute.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slot-attribute.test.d.ts","sourceRoot":"","sources":["../../../source/tests/slot-attribute.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=text-content.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-content.test.d.ts","sourceRoot":"","sources":["../../../source/tests/text-content.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=toggle-attribute.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toggle-attribute.test.d.ts","sourceRoot":"","sources":["../../../source/tests/toggle-attribute.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=wide-tree-traversal.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wide-tree-traversal.test.d.ts","sourceRoot":"","sources":["../../../source/tests/wide-tree-traversal.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=window-set-global.test.d.ts.map