webcomponents / polyfills

Web Components Polyfills
BSD 3-Clause "New" or "Revised" License
1.13k stars 165 forks source link

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

Open sorvell opened 5 years ago

sorvell commented 5 years ago

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

bicknellr commented 5 years ago

https://github.com/webcomponents/polyfills/pull/136

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically closed after being marked stale. If you're still facing this problem with the above solution, please comment and we'll reopen!

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.