refactor: use the elemental DOM API directly in the client engine - #25146
refactor: use the elemental DOM API directly in the client engine#25146Artur- wants to merge 4 commits into
Conversation
DomApi.wrap only returned the node itself after the Polymer DOM API was removed, and DomNode and DomElement describe the same native DOM operations as elemental Node and Element. Call sites now use the elemental types directly, which also lets StateTree.getStateNodeForDomNode accept a Node. DomApiAbstractionUsageTest verified that every DOM call went through DomApi.wrap so that Polymer could rewrite the operation. There is nothing left to rewrite, so the test is removed together with the abstraction.
|
@copilot resolve the merge conflicts in this pull request |
|
Test Results1 159 files - 213 1 160 suites - 213 1h 24m 34s ⏱️ - 2m 27s For more details on these failures, see this check. Results for commit 747aa93. ± Comparison against base commit 72bfead. ♻️ This comment has been updated with latest results. |
|
@claude review this |
|
Claude finished @Artur-'s task in 2m 15s —— View job Code Review
This is a clean, well-scoped refactor. I confirmed the premise holds: What I verified ✅
Minor observations (non-blocking)
VerdictNo correctness, security, or performance concerns. The change reduces surface area (−668 LOC) with equivalent behavior and even improves an API signature. Nice cleanup. 👍 |


DomApi.wrap only returned the node itself after the Polymer DOM API was removed, and DomNode and DomElement describe the same native DOM operations as elemental Node and Element. Call sites now use the elemental types directly, which also lets StateTree.getStateNodeForDomNode accept a Node.
DomApiAbstractionUsageTest verified that every DOM call went through DomApi.wrap so that Polymer could rewrite the operation. There is nothing left to rewrite, so the test is removed together with the abstraction.