Phase 1: Quick API Fixes — Missing Browser APIs (caches, dataLayer, Element.animate, relative fetch, HTML detection) #45
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#45
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?
Phase 1: Quick API Fixes — Missing Browser APIs ergänzen
Problembeschreibung
Der 19-Site-Scan zeigt 6+ schnell fixbare Lücken in der Browser-API-Implementierung:
Element,Event,Nodein buildVarDecls shadowedReferenceError: Element is not definedcachesAPI fehltReferenceError: caches is not defineddataLayernicht initialisiertReferenceError: dataLayer is not definedElement.animatefehltdocument.createElement('div').animate is not a functionInvalid URL "/path"SyntaxError: Unexpected token '<'Lösungsansätze
1.1 buildVarDecls bereinigen — KEINE globalen Constructors shadowen
1.2 caches API — noop Implementierung
1.3 dataLayer — Default Array
1.4 Element.animate — noop Web Animations
1.5 Relative URL Resolution in fetch
1.6 HTML-as-JS erkennen
Akzeptanzkriterien
window.cachesexistiert und ist ein Objektwindow.dataLayerexistiert als ArrayElement.animateexistiert und returned ein Animation-ähnliches ObjektElement is not defined,caches,dataLayerFehler mehrBetroffene Dateien
src/js/execution-realm.ts— buildVarDecls bereinigensrc/pages/page.ts— Window-Initialisierung (caches, dataLayer, animate)src/network/fetch.ts— Relative URL Resolutionsrc/js/script-loader.ts— HTML detection in executeRaw/fetchContentCross-Referenzen