developit / developit/undom

"elem.attributes" should include "style" attribute

Open
#11 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
690
Forks
25
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.