sugarcube-3
sugarcube-3 copied to clipboard
Custom HTML tags
Consider using custom HTML tags within SugarCube's UI where appropriate. Meaning limited to areas where I'd be temped to use Shadow DOM if I could—i.e., various control wrappers mostly—and only to replace tags with no inherent semantic meaning of their own—e.g., <div>
and <span>
.
Reasoning
Replacing non-semantic tags with custom tags on a limited basis could serve various purposes:
- Custom tags would have inherent semantic meaning—e.g.,
<sc-slider>
,<sc-volume>
,<sc-textbox>
, etc. - Custom tags would bypass some user sloppiness with their own CSS selectors—only some, however.
- Custom tags would allow certain other features to work easier—e.g.,
<br>
to<p>
conversion.