developit / developit/undom

"elem.attributes" should include "style" attribute

Aperta
#11 3 commenti 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
690
Fork
25
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently, `elem.attributes` does not include the `style` attribute since that's stored as a separate object. See: https://github.com/developit/undom/blob/master/src/undom.js#L93-L95

This differs from my expectations. It also means that the provided `serializeHtml()` function doesn't include inline styles without modification.

Update: also, `elem.style.cssText` returns an object when a string is expected. Is this level of DOM compliance out-of-scope for `undom` or is this a reasonable expectation?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.