4 ms·
> Use custom elements. That don't work without Javascript and that have multiple unsolved issues ranging from accessibility to not playing nice with SVGs. No.
by dmitriid 4y ago
> Use custom elements.
That don't work without Javascript and that have multiple unsolved issues ranging from accessibility to not playing nice with SVGs.
No. Use divs and spans.
- xigoi 4y agoCustom elements don't require JavaScript.
- dmitriid 4y agoWithout Javascript they are unknown to the browser. So the browsers fallback to treating them like a block element (so, a div). It's not because custom elements "work without Javascript". It's because browsers are trying to work even in the presence of errors and invalid/unknown markup. Javascript is required for custom elements.