webcomponents / webcomponents/polyfills

[Custom Elements] Calling `setAttribute` with a non-lower cased attribute name does not trigger `attributeChangedCallback`

Open
#110 4 comments 2 reactions 1 assignee Claimed by @bicknellr View on GitHub
Severity: Medium Type: Bug wontfix
Dominant language
HTML
Stars
1.2k
Forks
168
PR merge metrics
No merged PRs in 30d

Description

If `foo` is in `observedAttributes` and `setAttribute('FoO', '2')` is called, in Chrome with native custom elements, the `attributeChangedCallback` is called with the attribute name set to `foo` (lowercased). When using the custom elements polyfill, the `attributeChangedCallback` is not called..

See: http://jsbin.com/fiyufid/edit?html,console,output

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.