Sprint 13: Shadow DOM — Vollständige DOM-Implementierung (DocumentFragment-Basis) #69
Labels
No labels
bug
docs
feature
housekeeping
html-spec
performance
react-compat
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
glow-all/true-headless-browser#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sprint 13 — ✅ Implementiert
Commit:
edf4bcfTests: 27/27 grün, 1442 Gesamt — 0 Regression
Was wurde gemacht
Problem:
ShadowRootStubwar ein leerer Stub —querySelector,getElementByIdgaben immernullzurück.innerHTMLwar nur ein String, kein DOM.Lösung (Option A): ShadowRoot wird jetzt via DocumentFragment implementiert — spec-konform (
instanceof DocumentFragment === true).Implementierung
Abgedeckt
instanceof DocumentFragmentmode: 'open'/'closed'shadowRootnull bei closedinnerHTMLget/set mit HTML-ParsingquerySelector/querySelectorAllgetElementByIdappendChild/removeChildchildren/firstChild/lastChildtextContentisConnected=== false<slot>-Attribut vorhandenNicht enthalten (späteres Issue)
assignedNodes(), Flattening)