ladybird/Tests/LibWeb/Text/input/DOM
Aliaksandr Kalenik a0768e9bac Tests: Add getElementById mutation and shadow-root routing tests
Add focused coverage for the ElementByIdMap that is easy to regress
while optimizing lookup paths.

The dynamic mutations test verifies duplicate id tree order semantics
remain correct after reordering, id changes, removals, and
reintroduction.

The shadow root routing test verifies lookups stay routed to the correct
scope when an element with an id is removed and moved across shadow
roots and into the document.
2026-02-21 13:56:00 +01:00
..
cancelable-events.html LibWeb: Pass along the init dictionary for error / buffer change events 2025-03-25 07:52:12 +00:00
CDATASection-assignedSlot.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
CDATASection-cloneNode.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
CharacterData-replaceData-break-surrogate-pair.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
CharacterData-substringData-break-surrogate-pair.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ChildNode-after-next-sibling.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
ChildNode-before-previous-sibling.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
cloneNode-with-goofy-attribute.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
createElement-with-emoji-in-tag-name.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
createEvent-hashchangeevent.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Delete-from-text-node-with-associated-range.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
derived-interface-prototype.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Document-body-element-frameset-before-body.html LibWeb: Frameset should be the body element if it comes before body 2024-10-12 11:52:53 -06:00
Document-createCDATASection.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Document-createElementNS-custom.html LibWeb: Use right interface for custom SVG and MathML elements 2024-10-31 09:58:59 +00:00
Document-createElementNS-uppercase.html LibWeb: Make document.createElementNS() case-sensitive 2024-07-25 13:12:34 +02:00
Document-defaultView.html LibWeb: Return a WindowProxy from document.defaultView 2024-09-21 10:05:34 +02:00
Document-dir.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Document-getElementsByName-returns-html-elements.html LibWeb: Only return HTML elements from getElementsByName() 2024-10-14 17:59:00 +02:00
Document-has-unforgeable-properties.html LibWeb: Implement the LegacyUnforgeable attribute 2025-03-27 23:50:35 +00:00
Document-methods-that-must-do-nothing.html LibWeb: Add methods to Document that must do nothing 2024-04-14 10:45:43 +02:00
Document-named-properties.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Document-set-designMode.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Document-set-partial-attributes.html LibWeb/DOM: Implement the Document object's partial attributes 2024-04-19 10:58:45 +02:00
Document-svg-title-element-first-child.html LibWeb: Insert title as first child on setting title of svg document 2024-10-14 07:13:58 +02:00
DOMImplementation-create-xml-document.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
DOMImplementation-createHTMLDocument.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
domparser-parsefromstring-doctype-publicid.html LibXML: Set the doctype when parsing via Parser::parse_with_listener 2024-10-30 14:53:36 +01:00
domparser-parsefromstring-doctype-systemid.html LibXML: Set the doctype when parsing via Parser::parse_with_listener 2024-10-30 14:53:36 +01:00
domparser-parsefromstring-xml-empty-pubid.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
domparser-parsefromstring-xml-empty-systemid.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
domparser-parsefromstring-xml-parsererror.html LibWeb: Test for parseFromString parsererror 2024-10-14 16:20:57 +01:00
DOMParser-xml-document.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
DOMParser-xmlns.html LibXML: Set XMLNS namespace for xmlns attribute 2024-07-14 11:49:31 +02:00
DOMStringMap-setter-with-invalid-name.html LibWeb: Update attribute name validation in Element.setAttribute() 2025-06-19 11:00:53 +01:00
editable-subtree-flag.html LibWeb: Add test for dynamic editability flag propagation 2026-02-21 03:51:28 +01:00
Element-classList.html LibWeb: Perform DOMTokenList token validation in the correct order 2024-07-25 06:43:31 +02:00
Element-closest.html LibWeb: Change Element::closest() to check if any of selector matches 2024-03-22 18:43:46 +01:00
Element-documentElement-scrollWidthHeight.html LibWeb: Fix document element's .scrollHeight and .scrollWidth 2025-06-17 17:17:34 +01:00
Element-from-point-2.html LibWeb: Do paint-order traversal in Document::element_from_point() 2024-02-14 06:56:22 +01:00
Element-from-point.html LibWeb: Implement document.elementFromPoint() 2024-02-06 08:43:03 +01:00
Element-getAttributeNodeNS.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Element-getAttributeNS.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Element-removeAttributeNode.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Element-removeAttributeNS.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Element-scrollHeight.html LibWeb: Fix document element's .scrollHeight and .scrollWidth 2025-06-17 17:17:34 +01:00
Element-scrollWidth.html LibWeb: Fix document element's .scrollHeight and .scrollWidth 2025-06-17 17:17:34 +01:00
Element-set-scroll-left.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Element-setAttribute-capitalization.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Element-setAttribute-name-validation.html LibWeb: Update attribute name validation in Element.setAttribute() 2025-06-19 11:00:53 +01:00
Element-text-transform-fullwidth.html Tests: Fix 404 at Element-text-transform-fullwidth.html 2024-11-29 12:16:50 +00:00
Element-text-transform-lowercase.html LibWeb: Pass locale to to_lowercase() from apply_text_transform 2024-11-01 07:48:17 -04:00
Element-text-transform-uppercase.html LibWeb: Pass locale to to_uppercase() from apply_text_transform 2024-11-01 07:48:17 -04:00
Element-to_titlecase-lang.html LibWeb: Use the correct locale when applying titlecase 2024-10-28 17:55:05 -04:00
Element-toggleAttribute-xml-doc-html-ns.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Elements-from-point-2.html LibWeb: Do paint-order traversal in Document::elements_from_point() 2024-02-14 06:56:22 +01:00
Elements-from-point-3.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Elements-from-point.html LibWeb: Do paint-order traversal in Document::elements_from_point() 2024-02-14 06:56:22 +01:00
Event-has-unforgeable-properties.html LibWeb: Implement the LegacyUnforgeable attribute 2025-03-27 23:50:35 +00:00
FormAssociatedElement-selection-type-change.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
FormAssociatedElement-selection.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
FormAssociatedElement-setRangeText.html LibWeb: Implement setRangeText for input and textarea elements 2024-08-31 07:47:54 +02:00
getElementById-dynamic-mutations.html Tests: Add getElementById mutation and shadow-root routing tests 2026-02-21 13:56:00 +01:00
getElementById-empty-string.html LibWeb: Ensure document.getElementById("") returns null 2024-07-23 08:58:22 +02:00
getElementById-multiple.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
getElementById-on-unconnected-shadow-tree.html LibWeb: Limit usage of getElementById() cache to connected roots 2025-04-06 04:14:29 +02:00
getElementById-shadow-root-routing.html Tests: Add getElementById mutation and shadow-root routing tests 2026-02-21 13:56:00 +01:00
getElementsByClassName-empty-string.html LibWeb: Ensure document.getElementsByClassName("") returns no elements 2024-07-23 08:58:22 +02:00
getElementsByClassName-multiple.html LibWeb: Ensure ParentNode.getElementsByClassName() matches all classes 2024-08-04 10:39:17 +02:00
getElementsName-empty-string.html LibWeb: Ensure document.getElementsByName("") returns no elements 2024-07-23 08:58:22 +02:00
HTMLCollection-empty-string-as-property-name.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
HTMLCollection-order.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
HTMLCollection-property-names-iteration-order.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
HTMLSelectElement-length.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Node-isDefaultNamespace.html LibWeb: Implement Node.isDefaultNamespace() 2024-07-18 12:41:01 +03:00
Node-isEqualNode.html Tests/LibWeb: Add some tests for Node.isEqualNode 2024-07-19 09:22:08 +02:00
Node-lookupNamespaceURI.html LibWeb: Implement Node.lookupNamespaceURI() 2024-07-18 12:41:01 +03:00
Node-lookupPrefix.html LibWeb/DOM: Implement Node.lookupPrefix 2024-07-28 00:51:55 +01:00
Node-nodeName.html Tests: Add test for Node.nodeName 2024-07-26 07:19:23 +02:00
Node-normalize.html LibWeb: Implement Node.normalize() 2024-07-13 09:35:54 +02:00
Offset-of-empty-inline-element.html LibWeb: Don't crash when querying offsets of empty inline elements 2024-01-28 23:32:40 +01:00
range-bounding-client-rect-with-nested-text.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Range-containing-CDATASection.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Range-deleteContents.html LibWeb+WebContent: Do not include DOM HTML in text test expectations 2024-10-03 07:07:28 -04:00
range-get-client-rects.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
range-rect-height-with-small-line-height.html LibWeb: Inflate range rect by font ascenders/descenders 2026-02-17 10:51:48 +01:00
Range-to-string.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
removeAttribute-style.html LibWeb: Update m_inline_style when element style attribute is removed 2025-06-09 12:06:44 +01:00
replaceSync-Property.html LibWeb: Avoid dereferencing a null pointer to document 2025-09-10 16:57:36 +01:00
setAttribute-with-emoji-in-attribute-name.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
shadow-root-boundary-of-inserted-node-is-traversed.html LibWeb: Actually traverse the shadow root of the inclusive descendant 2024-11-13 14:40:02 +01:00
Text-methods.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Text-set-get-data.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Text-wholeText.html LibWeb: Implement Text.wholeText 2024-07-20 18:02:51 +01:00
TreeWalker-nextNode-with-detached-currentNode.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
update-live-ranges-on-node-insertion.html Meta: Add DOCTYPEs to most text tests 2025-03-20 11:50:49 +01:00
Window-methods-that-must-do-nothing.html LibWeb: Add methods to Window that must do nothing 2024-04-14 10:45:43 +02:00
window-open-and-reopen-custom-target.html LibWeb: Protect against null navigables in lineage chain more thoroughly 2026-02-08 14:51:25 -05:00