You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bd59818
Browse filesBrowse the repository at this point in the historyBrowse files
## What does this PR do?
Provide the shared DOM lookup layer at the base of [the styling
stack](https://github.com/bombshell-dev/ui/stack/107). The focus stack
(#75) also depends on this PR; document fragments from #90 are already
on main.
- `Document.getElementById()` finds the first matching element in
current tree order and reflects ID changes, insertion, removal, and
reordering.
- `findElement` and `findElements` reuse the CSS selector adapter for
literal predicate traversal.
- `Document.getElementsByTagName()` returns live `HTMLCollection`
results with indexed access, iteration, and named lookup.
- `HTMLDivElement` is registered once in the document factory and WPT
bindings.
## Type of change
- [ ] Bug fix
- [x] Feature
- [ ] Refactor (no behavior change)
- [ ] Documentation
- [ ] Performance improvement
- [ ] Tests
- [ ] Chore (dependencies, CI, tooling)
## Checklist
- [x] I have added a changeset
## AI-generated code disclosure
- [x] This PR includes AI-generated code
'Object.getOwnPropertyNames on HTMLCollection with non-HTML namespace',
81
+
'Object.getOwnPropertyNames on HTMLCollection with expando object',
82
+
'Trying to set an expando that shadows a named property that gets added later',
83
+
'Trying to set a non-configurable expando that shadows a named property that gets added later',
84
+
// The other cases require named own properties and their descriptors.
85
+
],
86
+
'dom/nodes/Document-getElementById.html': [
87
+
'Calling document.getElementById with an empty string argument.',
88
+
'Calling document.getElementById with a null argument.',
89
+
'Calling document.getElementById with an undefined argument.',
90
+
'on static page',
91
+
'Document.getElementById with a script-inserted element',
92
+
'update `id` attribute via setAttribute/removeAttribute',
93
+
'Ensure that the id attribute only affects elements present in a document',
94
+
"in tree order, within the context object's tree",
95
+
'Modern browsers optimize this method with using internal id cache. This test checks that their optimization should effect only append to `Document`, not append to `Node`.',
96
+
"changing attribute's value via `Attr` gotten from `Element.attribute`.",
97
+
'update `id` attribute via element.id',
98
+
"where insertion order and tree order don't match",
99
+
'Inserting an id by inserting its parent node',
100
+
'Document.getElementById must not return nodes not present in document',
101
+
// Four other cases require innerHTML or outerHTML mutation.
0 commit comments