knockout / tko

🥊 Technical Knockout – The Monorepo for Knockout.js (4.0+)
http://www.tko.io
Other
274 stars 34 forks source link

Components should be case insensitive #43

Closed brianmhunt closed 6 years ago

brianmhunt commented 6 years ago

Per https://twitter.com/vekzdran/status/924209856059502592

vmandic commented 6 years ago

A short momentary recall is that I could not use <someCustomEl /> but could use <some-custom-el />. Again now from my memory... I did not even face an error in the console. Using the custom data-bind and component binding worked!

brianmhunt commented 6 years ago

Thanks @vmandic — it turns out custom elements need a dash (-) e.g. some-custom-el will work but somecustomel will not, which is IIRC a W3C thing. Will check for this and throw in tko.