@ctrl/dom 0.1.15 → 0.2.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 (69) hide show
  1. package/README.md +44 -0
  2. package/dist/bridge/internal.js +1 -1
  3. package/dist/dom/_chunks/src-CaVKwScX.js +49 -0
  4. package/dist/dom/index.js +1 -1
  5. package/dist/dom/internal.js +1 -1
  6. package/dist/dom/types/css/cascade.d.ts +10 -3
  7. package/dist/dom/types/css/cssom.d.ts +9 -3
  8. package/dist/dom/types/css/parser.d.ts +27 -0
  9. package/dist/dom/types/css/style-deps.d.ts +11 -0
  10. package/dist/dom/types/events/listeners.d.ts +24 -2
  11. package/dist/dom/types/html/elements.d.ts +3 -2
  12. package/dist/dom/types/html/forms/HTMLButtonElement.d.ts +4 -3
  13. package/dist/dom/types/html/forms/HTMLFieldSetElement.d.ts +3 -2
  14. package/dist/dom/types/html/forms/HTMLInputElement.d.ts +11 -36
  15. package/dist/dom/types/html/forms/HTMLOutputElement.d.ts +6 -5
  16. package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +6 -5
  17. package/dist/dom/types/html/forms/HTMLTextAreaElement.d.ts +10 -15
  18. package/dist/dom/types/html/forms/control-state.d.ts +33 -0
  19. package/dist/dom/types/html/forms/face.d.ts +3 -2
  20. package/dist/dom/types/html/forms/form-associated.d.ts +15 -3
  21. package/dist/dom/types/html/forms/user-validity.d.ts +2 -2
  22. package/dist/dom/types/html/forms/validation.d.ts +2 -2
  23. package/dist/dom/types/internal.d.ts +3 -2
  24. package/dist/dom/types/keys.d.ts +9 -16
  25. package/dist/dom/types/nodes/Document.d.ts +6 -2
  26. package/dist/dom/types/nodes/attributes.d.ts +1 -1
  27. package/dist/dom/types/nodes/cache.d.ts +1 -1
  28. package/dist/dom/types/nodes/constants.d.ts +5 -0
  29. package/dist/dom/types/selectors/compile.d.ts +8 -0
  30. package/dist/dom/types/selectors/internal.d.ts +3 -1
  31. package/dist/dom/types/window/clock.d.ts +30 -0
  32. package/dist/dom/types/window/file-reset.d.ts +22 -0
  33. package/dist/jest-dom/_chunks/{matchers-CkxM783o.cjs → matchers-CZ6Smfw9.cjs} +2 -2
  34. package/dist/jest-dom/_chunks/{matchers-Dt7W4g5X.js → matchers-CwGF61j-.js} +2 -2
  35. package/dist/jest-dom/index.cjs +1 -1
  36. package/dist/jest-dom/index.js +1 -1
  37. package/dist/jest-dom/jest-globals.cjs +1 -1
  38. package/dist/jest-dom/jest-globals.js +1 -1
  39. package/dist/jest-dom/matchers.cjs +1 -1
  40. package/dist/jest-dom/matchers.js +1 -1
  41. package/dist/jest-dom/vitest.cjs +1 -1
  42. package/dist/jest-dom/vitest.js +1 -1
  43. package/dist/react/_chunks/pure-CYb0HgYU.js +1 -0
  44. package/dist/react/_chunks/pure-DRugbA0j.cjs +1 -0
  45. package/dist/react/index.cjs +1 -1
  46. package/dist/react/index.js +1 -1
  47. package/dist/react/pure.cjs +1 -1
  48. package/dist/react/pure.js +1 -1
  49. package/dist/testing-library/index.cjs +2 -2
  50. package/dist/testing-library/index.js +7 -7
  51. package/dist/user-event/index.cjs +15 -15
  52. package/dist/user-event/index.js +15 -15
  53. package/dist/user-event/types/ctrl-dom.d.ts +8 -0
  54. package/dist/vitest-environment/_chunks/rolldown-runtime-H3fMLYWS.js +1 -0
  55. package/dist/vitest-environment/failure-snapshot.js +1 -1
  56. package/dist/vitest-environment/index.js +1 -1
  57. package/dist/vitest-environment/jsx-dev-runtime.js +1 -0
  58. package/dist/vitest-environment/jsx-runtime.js +1 -0
  59. package/dist/vitest-environment/plugin.js +1 -1
  60. package/dist/vitest-environment/shared-workers.js +1 -0
  61. package/dist/vitest-environment/types/jsx-dev-runtime.d.ts +3 -0
  62. package/dist/vitest-environment/types/jsx-runtime.d.ts +4 -0
  63. package/dist/vitest-environment/types/plugin.d.ts +19 -0
  64. package/dist/vitest-environment/types/shared-workers.d.ts +1 -0
  65. package/package.json +13 -1
  66. package/dist/dom/_chunks/src-C4oa-U7z.js +0 -49
  67. package/dist/react/_chunks/pure-D7Z4g4oF.js +0 -1
  68. package/dist/react/_chunks/pure-DOgNQrwu.cjs +0 -1
  69. package/dist/vitest-environment/_chunks/rolldown-runtime-BhWHdk3m.js +0 -1
package/README.md CHANGED
@@ -262,6 +262,50 @@ Jest):
262
262
  | `compileCache` (Vitest) | `true` with the plugin's Testing Library, else `false` | enable Node's compile cache before importing the DOM (with the plugin: as each worker starts), for every worker after the first. It stays on for everything the worker loads, which only pays off for large files (stock Testing Library's many small ones load slower). `CTRL_DOM_COMPILE_CACHE=0/1` overrides |
263
263
  | `nodeFetch` (Jest) | `false` | keep Node's `fetch`/`Request`/`Response` (absent under jest-environment-jsdom) |
264
264
 
265
+ Options of the Vitest plugin alone (`ctrlDom({ ... })`):
266
+
267
+ | Option | Default | |
268
+ | --- | --- | --- |
269
+ | `testingLibrary` | `true` | route stock `@testing-library/*` imports to @ctrl/dom's implementations; `false` swaps only the DOM |
270
+ | `jsxRuntime` | `true` | resolve `react/jsx-runtime` and `react/jsx-dev-runtime` to ES module copies of them. Vitest hands test and application code a Proxy over a CommonJS dependency, so every JSX element otherwise goes through the Proxy's `get` trap; a hooks-heavy render is 8% faster without it. Left alone when the project resolves the runtime to anything but its React |
271
+ | `sharedWorkers` | `false` | run a worker's test files one after another in the same realm instead of starting a worker per file: see below |
272
+ | `debug` | off | `"aria"` or `"compact"`: [debugging with coding agents](#debugging-with-coding-agents) |
273
+
274
+ ### Shared workers
275
+
276
+ ```ts
277
+ export default defineConfig({ plugins: [ctrlDom({ sharedWorkers: true })] });
278
+ ```
279
+
280
+ Most of what a suite of many short test files costs is not the tests: each file starts a worker,
281
+ which boots Node, loads Vitest, React and react-dom, and runs all of it cold. `sharedWorkers` sets
282
+ Vitest's `isolate: false`, so a worker keeps going from file to file, and puts back most of what a
283
+ fresh worker gave each file. Base UI's 9,199 tests take 35 s isolated and 7–8 s this way, with the
284
+ same results.
285
+
286
+ Before each test file:
287
+
288
+ - first-party modules are evaluated again (`vi.resetModules()`), so module state and `vi.mock()`
289
+ start over;
290
+ - the window is reset: trees still mounted are unmounted, pending timers and animation frames
291
+ dropped, the body emptied, focus, storage, cookies and the URL put back;
292
+ - Testing Library's cleanup is registered for the file (stock Testing Library registers it for a
293
+ worker's first file only, which is why the mode needs `testingLibrary`).
294
+
295
+ What a file can still see from an earlier one, and why the mode is opt-in:
296
+
297
+ - the module state of dependencies. Vitest loads `node_modules` through Node, once per worker:
298
+ React, a CSS-in-JS cache, a data-fetching client created at module scope in a dependency;
299
+ - `<head>`, event listeners on `window` and `document`, and patched prototypes, which those
300
+ modules may rely on;
301
+ - memory. Vitest keeps every test it has run reachable for the life of the worker (chai remembers
302
+ each `expect.extend` call, and Vitest makes one per test), and with it that file's modules: a
303
+ worker's heap grows by the size of a file's module graph per file, 2.3 MB on Base UI. More
304
+ workers means fewer files each.
305
+
306
+ The VM pools (`pool: "vmThreads"`) already reuse workers with a fresh context per file, and are
307
+ unaffected.
308
+
265
309
  ## Compat profiles
266
310
 
267
311
  Suites written for jsdom feature-detect: a library that finds `PointerEvent`, `matchMedia` or
@@ -1,4 +1,4 @@
1
1
  // Generated by scripts/release.ts (writeBridges): the running ctrl-dom environment's DOM, else a fresh load.
2
2
  import { createRequire } from "node:module";
3
3
  const dom = globalThis[Symbol.for("ctrl-dom.dom.modules")]?.internal ?? createRequire(import.meta.url)("../dom/internal.js");
4
- export const { $_proto__, $aboutBase, $active, $assocGen, $attr, $attributes, $availableToElementInternals, $badInput, $baseFor, $baseOverride, $baseURL, $baseVersion, $block, $byCtor, $byName, $cache, $callback, $checked, $checkedSet, $childNodes, $childWindows, $children, $classList, $clipboard, $clonable, $closed, $coll, $compiled, $compiledFor, $condition, $constructed, $constructingEntryList, $contentType, $controlsCache, $controlsDoc, $controlsVersion, $cookieJar, $cookies, $css, $current, $customElements, $customValidity, $cx, $data, $dataset, $declarative, $defaultNamespace, $defaultValueOverride, $delegatesFocus, $derived, $devicePixelRatio, $dirtiness, $dirtyChecked, $dirtyValue, $disabled, $disallowModification, $doc, $dropEffect, $ec, $effectAllowed, $el, $elements, $entries, $eo, $error, $file, $files, $fill, $filter, $firingSubmissionEvents, $focused, $forLabels, $form, $forms, $frameCallbacks, $frameElement, $frameId, $frameTask, $frameTime, $generation, $globalObject, $hasTransients, $height, $history, $home, $host, $href, $id, $idleCallbacks, $idleId, $ids, $impl, $implementation, $indeterminate, $index, $indexed, $inflight, $info, $innerHeight, $innerWidth, $is2D, $isHTML, $items, $keyText, $kind, $labels, $layerName, $list, $listeners, $localStorage, $location, $lockedForReset, $m, $matches, $media, $mediaQueryLists, $mode, $name, $names, $namespaces, $navigator, $nodes, $onchange, $options, $owner, $ownerNode, $ownerRule, $parent, $parentRule, $parentWindow, $pastNames, $pointerBeforeReference, $preApplied, $preChecked, $preCheckedRadio, $preIndeterminate, $prefix, $prelude, $presentationStyle, $pseudo, $queries, $radios, $ranges, $rawValue, $readonly, $readyState, $rebuildVersion, $record, $records, $rects, $reference, $result, $root, $rules, $running, $runningFrame, $sc, $screen, $scrollRestoration, $scrollX, $scrollY, $selDir, $selEnd, $selSet, $selStart, $selectedOptions, $selectedness, $selection, $selector, $serializable, $sessionStorage, $settled, $shadowRoot, $shed, $sheet, $sheets, $slotAssignment, $so, $states, $style, $styleVersion, $supportsText, $systemId, $target, $targets, $tasks, $timers, $title, $treeVersion, $type, $types, $uiValue, $updating, $updatingSelectedContent, $uri, $url, $userActivation, $userEdited, $userValidity, $validity, $value, $version, $visualViewport, $w, $whatToShow, $whenDefined, $width, $window, $writeBuffer, $x, $xhr, $y, $z, ATTRIBUTE_NODE, AttrRecord, CDATA_SECTION_NODE, COMMENT_NODE, COMPAT, COMPAT_PROFILES, DEFAULT_COMPAT, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, DeclBlock, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, EventState, FAILURE_CHANNEL, F_ADOPT_HOOK, F_ARIA_ATTRS, F_ATTR_HOOK, F_CE_CUSTOM, F_CHILDREN_HOOK, F_CHILD_LIST, F_CONNECTED, F_CONNECT_HOOK, F_CONTENTEDITABLE_ATTR, F_CUSTOM, F_DATA_ATTRS, F_FACE, F_HAS_SHADOW, F_HAS_STYLE_ATTR, F_HTML, F_INERT_ATTR, F_MO_REGISTERED, F_SHADOW_ROOT, F_TABINDEX_ATTR, GLOBAL_EVENT_HANDLER_EVENTS, HTMLCollection, HTML_NS, INPUT_TYPE_NAMES, MATHML_NS, NOTATION_NODE, NodeCache, NodeImpl, NodeList, PROCESSING_INSTRUCTION_NODE, SPAN_CHANNEL, SVG_NS, T, TEXT_NODE, VirtualClock, VirtualTimeout, WINDOW_EVENT_HANDLER_EVENTS, XLINK_NS, XMLNS_NS, XML_NS, adoptedStyleSheetsOf, ariaAttr, asciiLowercase, assignManually, assignedElements, assignedNodes, assignedSlot, attachShadowRoot, attr, attrAssociatedElement, attrAssociatedElements, attrNode, canSkipZeroDelayWait, captureInterfaceBaseline, childAt, classTokens, clearUIValue, clockNow, clockStats, closest, compareBoundaryPoints, compatExposes, computedDisplay, computedValue, computedVisibility, constructEntryList, controlValue, createEvent, createFileList, createLinkSheet, currentStyleVersion, defaultButton, deferredCompatMembers, derivedCache, describeCall, describeNode, dispatch, dispatchTrusted, ensureCollectionIndexGetters, ensureIndexGetters, evaluateMediaQueryList, faceState, findFlattenedSlottables, findSlot, fireAnEvent, fireSyntheticPointerEvent, firstElementChild, foreignImmediatesPending, formOwner, getAttribute, getComputedStyle, getComputedStyleOverride, getCurrentEvent, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getEventHandler, getUISelection, getUIValue, guardInterfaceDefinitions, hasAttr, hasAuthorStyles, hasExplicitAttrElements, hasListeners, hasReadonlyAttribute, hasUIValue, hiddenGlobals, implicitSubmission, indexGetterTable, indexOf, inputChecked, inputIndeterminate, inputType, inputTypeFromAttr, inspectNode, installClock, installEventHandlers, isActuallyDisabled, isAsciiWhitespace, isAutofilled, isChecked, isClockTimer, isDefault, isDisabled, isDisplayNone, isDisplayNoneInclusive, isEditableControl, isEnabled, isFACE, isInRange, isInclusiveAncestor, isIndeterminate, isInvalid, isLabelable, isListed, isMutable, isNumericType, isOptional, isOutOfRange, isPlaceholderShown, isReadOnly, isReadWrite, isRequired, isResettable, isSubmitButton, isSubmittable, isTextControl, isTextualType, isValid, isValidDoctypeName, isValidElementLocalName, isValidNamespacePrefix, isVisibilityHidden, labeledControl, labelsFor, lastElementChild, listOfOptions, matchMediaText, matches, mediaEnvironment, nextElementInTree, nextElementSibling, nextInTree, nextSkippingChildren, nodeCache, nodeGetTheParent, nodeLength, notifyMutationObservers, optionSelected, parseDeclBlock, parseFragment, parseMediaQueryList, peekDerivedCache, pointerEvents, pointerEventsNone, prefixFlag, previousElementSibling, previousInTree, pseudoContent, querySelector, querySelectorAll, quote, registerOwnerSheet, removeAllEventListeners, removeAttribute, removeOwnerSheet, replaceData, reportException, resolveCompat, restoreInterfaces, retarget, serializeChildren, serializeNode, setAdoptedStyleSheets, setAssignedSlotLookup, setAttribute, setCheckedFromUI, setComputedColorMode, setEventHandler, setFailureSnapshot, setFilesFromUI, setNodeDescriber, setNotImplementedHandler, setOptionSelectedFromUI, setTrusted, setUISelection, setUIValue, setUncaughtExceptionHandler, skipIdleTime, skipZeroDelayWait, spanChannel, splitOnAsciiWhitespace, splitText, styleElementRemoved, styleElementSheet, styleElementUpdated, styleSheetsOf, styledDisplay, subscribeTestFailures, supportsSelection, supportsSelectionType, tagId, tagName, tracePromise, traceSync, tracing, trackGlobalTimers, treeRoot, uaDisplay, unregisterOwnerSheet, validateAndExtract, valueMode, virtualDate, virtualPerformance, windowHooks, windowInterfaces, withNamedProperties } = dom;
4
+ export const { $_proto__, $aboutBase, $active, $assocGen, $attr, $attributes, $availableToElementInternals, $baseFor, $baseOverride, $baseURL, $baseVersion, $benign, $block, $blockParsed, $blockText, $byCtor, $byName, $cache, $callback, $childNodes, $childWindows, $children, $classList, $clipboard, $clonable, $closed, $coll, $compiled, $compiledFor, $condition, $constructed, $constructingEntryList, $contentType, $control, $controlsCache, $controlsDoc, $controlsVersion, $cookieJar, $cookies, $css, $current, $customElements, $customValidity, $cx, $data, $dataset, $declarative, $defaultNamespace, $defaultValueOverride, $delegatesFocus, $derived, $devicePixelRatio, $dirtiness, $disabled, $disallowModification, $doc, $dropEffect, $ec, $effectAllowed, $el, $elements, $entries, $eo, $error, $file, $files, $fill, $filter, $firingSubmissionEvents, $focused, $forLabels, $form, $formAttrSeen, $forms, $frameCallbacks, $frameElement, $frameId, $frameTask, $frameTime, $generation, $globalObject, $hasTransients, $height, $history, $home, $host, $href, $id, $idleCallbacks, $idleId, $ids, $impl, $implementation, $index, $indexed, $inflight, $info, $innerHeight, $innerWidth, $is2D, $isHTML, $items, $keyText, $kind, $labels, $layerName, $list, $listeners, $localStorage, $location, $lockedForReset, $m, $matches, $media, $mediaQueryLists, $mode, $name, $names, $namespaces, $navigator, $nodes, $onchange, $options, $owner, $ownerNode, $ownerRule, $parent, $parentRule, $parentWindow, $pastNames, $pointerBeforeReference, $prefix, $prelude, $presentationStyle, $pseudo, $queries, $radios, $ranges, $readonly, $readyState, $rebuildVersion, $record, $records, $rects, $reference, $result, $root, $rules, $running, $runningFrame, $sc, $screen, $scrollRestoration, $scrollX, $scrollY, $selSet, $selectedOptions, $selectedness, $selection, $selector, $serializable, $sessionStorage, $settled, $shadowRoot, $shed, $sheet, $sheets, $slotAssignment, $so, $states, $style, $styleVersion, $supportsText, $systemId, $target, $targets, $tasks, $timers, $title, $treeVersion, $type, $types, $updating, $updatingSelectedContent, $uri, $url, $userActivation, $userValidity, $validity, $value, $version, $visualViewport, $w, $whatToShow, $whenDefined, $width, $window, $writeBuffer, $x, $xhr, $y, $z, ATTRIBUTE_NODE, AttrRecord, CDATA_SECTION_NODE, COMMENT_NODE, COMPAT, COMPAT_PROFILES, DEFAULT_COMPAT, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, DeclBlock, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, EventState, FAILURE_CHANNEL, F_ADOPT_HOOK, F_ARIA_ATTRS, F_ATTR_HOOK, F_CE_CUSTOM, F_CHILDREN_HOOK, F_CHILD_LIST, F_CONNECTED, F_CONNECT_HOOK, F_CONTENTEDITABLE_ATTR, F_CUSTOM, F_DATA_ATTRS, F_FACE, F_FORM_ATTR, F_HAS_SHADOW, F_HAS_STYLE_ATTR, F_HTML, F_INERT_ATTR, F_MO_REGISTERED, F_SHADOW_ROOT, F_TABINDEX_ATTR, GLOBAL_EVENT_HANDLER_EVENTS, HTMLCollection, HTML_NS, INPUT_TYPE_NAMES, MATHML_NS, NOTATION_NODE, NodeCache, NodeImpl, NodeList, PROCESSING_INSTRUCTION_NODE, SPAN_CHANNEL, SVG_NS, T, TEXT_NODE, VirtualClock, VirtualTimeout, WINDOW_EVENT_HANDLER_EVENTS, XLINK_NS, XMLNS_NS, XML_NS, adoptedStyleSheetsOf, ariaAttr, asciiLowercase, assignManually, assignedElements, assignedNodes, assignedSlot, attachShadowRoot, attr, attrAssociatedElement, attrAssociatedElements, attrNode, canSkipZeroDelayWait, captureInterfaceBaseline, childAt, classTokens, clearUIValue, clockNow, clockStats, closest, compareBoundaryPoints, compatExposes, computedDisplay, computedValue, computedVisibility, constructEntryList, controlValue, createEvent, createFileList, createLinkSheet, currentStyleVersion, defaultButton, deferredCompatMembers, derivedCache, describeCall, describeNode, dispatch, dispatchTrusted, ensureCollectionIndexGetters, ensureIndexGetters, evaluateMediaQueryList, faceState, findFlattenedSlottables, findSlot, fireAnEvent, fireSyntheticPointerEvent, firstElementChild, foreignImmediatesPending, formOwner, getAttribute, getComputedStyle, getComputedStyleOverride, getCurrentEvent, getElementsByClassName, getElementsByTagName, getElementsByTagNameNS, getEventHandler, getUISelection, getUIValue, guardInterfaceDefinitions, hasAttr, hasAuthorStyles, hasExplicitAttrElements, hasListeners, hasReadonlyAttribute, hasUIValue, hiddenGlobals, implicitSubmission, indexGetterTable, indexOf, inputChecked, inputIndeterminate, inputType, inputTypeFromAttr, inspectNode, installClock, installEventHandlers, isActuallyDisabled, isAsciiWhitespace, isAutofilled, isChecked, isClockTimer, isDefault, isDisabled, isDisplayNone, isDisplayNoneInclusive, isEditableControl, isEnabled, isFACE, isInRange, isInclusiveAncestor, isIndeterminate, isInvalid, isLabelable, isListed, isMutable, isNumericType, isOptional, isOutOfRange, isPlaceholderShown, isReadOnly, isReadWrite, isRequired, isResettable, isSubmitButton, isSubmittable, isTextControl, isTextualType, isValid, isValidDoctypeName, isValidElementLocalName, isValidNamespacePrefix, isVisibilityHidden, labeledControl, labelsFor, lastElementChild, listOfOptions, listenerCount, loopTurn, matchMediaText, matches, mediaEnvironment, nextElementInTree, nextElementSibling, nextInTree, nextSkippingChildren, nodeCache, nodeGetTheParent, nodeLength, notifyMutationObservers, optionSelected, parseDeclBlock, parseFragment, parseMediaQueryList, peekDerivedCache, pointerEvents, pointerEventsNone, prefixFlag, previousElementSibling, previousInTree, pseudoContent, querySelector, querySelectorAll, quote, registerOwnerSheet, registerTestHooks, removeAllEventListeners, removeAttribute, removeOwnerSheet, replaceData, reportException, resetWindowBetweenFiles, resolveCompat, restoreInterfaces, retarget, reusableElement, serializeChildren, serializeNode, setAdoptedStyleSheets, setAssignedSlotLookup, setAttribute, setCheckedFromUI, setComputedColorMode, setEventHandler, setFailureSnapshot, setFilesFromUI, setNodeDescriber, setNotImplementedHandler, setOptionSelectedFromUI, setTrusted, setUISelection, setUIValue, setUncaughtExceptionHandler, skipIdleTime, skipZeroDelayWait, spanChannel, splitOnAsciiWhitespace, splitText, styleElementRemoved, styleElementSheet, styleElementUpdated, styleSheetsOf, styledDisplay, subscribeTestFailures, supportsSelection, supportsSelectionType, tagId, tagName, testHooks, tracePromise, traceSync, tracing, trackGlobalTimers, treeRoot, uaDisplay, unregisterOwnerSheet, validateAndExtract, valueMode, virtualDate, virtualPerformance, windowHooks, windowInterfaces, withNamedProperties } = dom;