webcomponents / webcomponents/template-shadowroot
Deprecated API harms Lighthouse score
- Lingua principale
- TypeScript
- Stelle
- 39
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi there, I just noticed that when I run Lighthouse with this polyfill, in Chromium browsers [these lines](https://github.com/webcomponents/template-shadowroot/blob/941aeecc24b156ed2b47d77f334d23e1f66922b7/src/_implementation/feature_detect.ts#L21C1-L23C8) are flagged as a deprecated API and severely reduce the Best Practices result. It seems from [here](https://chromestatus.com/feature/5116094370283520) that this needs to be updated to use `parseHTMLUnsafe()` instead? I can put in a PR for this if that's acceptable
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Apri src/_implementation/feature_detect.ts e ispeziona le righe 21-23, quindi confronta l’API deprecata con le indicazioni su parseHTMLUnsafe() collegate nell’issue. Il lavoro è completato quando il polyfill non attiva più l’avviso segnalato relativo all’API deprecata nelle esecuzioni di Chromium Lighthouse.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100