Skip to content

chore: remove Polymer 1 DOM API and HTML import loading - #25145

Merged
mshabarov merged 5 commits into
mainfrom
remove-dead-polymer-api
Aug 11, 2026
Merged

chore: remove Polymer 1 DOM API and HTML import loading#25145
mshabarov merged 5 commits into
mainfrom
remove-dead-polymer-api

Conversation

@Artur-

@Artur- Artur- commented Aug 6, 2026

Copy link
Copy Markdown
Member

DomApi switched from the normal DOM API to a Polymer specific one when a global Polymer object reporting version 1.x was present. Polymer 1 was distributed as an HTML import (polymer-micro.html) and HTML imports can no longer be loaded: Dependency.Type only knows STYLESHEET, JAVASCRIPT, JS_MODULE and DYNAMIC_IMPORT, and Polymer 3 never defines a global Polymer object. The Polymer implementation was therefore never taken into use and DomApi.wrap always returned the node as is.

As nothing requests HTML imports anymore, ResourceLoader.loadHtml and inlineHtml, the HTMLImports.whenReady plumbing they rely on and the rel="import" branch of the already loaded resource scan are removed as well.

Artur- added 3 commits August 6, 2026 18:38
DomApi switched from the normal DOM API to a Polymer specific one when a
global Polymer object reporting version 1.x was present. Polymer 1 was
distributed as an HTML import (polymer-micro.html) and HTML imports can
no longer be loaded: Dependency.Type only knows STYLESHEET, JAVASCRIPT,
JS_MODULE and DYNAMIC_IMPORT, and Polymer 3 never defines a global
Polymer object. The Polymer implementation was therefore never taken
into use and DomApi.wrap always returned the node as is.

As nothing requests HTML imports anymore, ResourceLoader.loadHtml and
inlineHtml, the HTMLImports.whenReady plumbing they rely on and the
rel="import" branch of the already loaded resource scan are removed as
well.
@github-actions github-actions Bot added the +0.0.1 label Aug 7, 2026
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

 1 450 files  ±0   1 451 suites  ±0   1h 25m 32s ⏱️ -46s
10 393 tests  - 4  10 326 ✅  - 4  67 💤 ±0  0 ❌ ±0 
10 829 runs   - 4  10 761 ✅  - 4  68 💤 ±0  0 ❌ ±0 

Results for commit e773214. ± Comparison against base commit cad481f.

♻️ This comment has been updated with latest results.

@sonarqubecloud

Copy link
Copy Markdown

@mshabarov
mshabarov added this pull request to the merge queue Aug 11, 2026
Merged via the queue into main with commit 47a7c24 Aug 11, 2026
35 checks passed
@mshabarov
mshabarov deleted the remove-dead-polymer-api branch August 11, 2026 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants