Open anonwaha opened 2 months ago
should I rewrite Kokonotsuba's existing HTML to be HTML5-compliant?
i say yes. there is probably only 1 user that uses something like mypal/failmoon and even then im pretty sure failmoon supports some HTML5(?). Other points also outway the deficits.
Moar HTML authors with bad habits will have to change their ways lest we end up back where we are now
a lot of bad habits i picked up from kokonotsuba or other applications with outdated or poorly written HTML output so this would be a welcome change in any case
TEH PROBLEM
Currently, Kokonotsuba's HTML output is an abominable mixture of different HTML standards - HTML 4.01, XHTML, HTML5, and in some cases not adhering to any standard at all. It's also doing a lot of styling with tags; (mis)using certain HTML tags/attributes (often deprecated ones) to modify the appearance of the page rather than using the appropriate HTML tags combined with CSS
TEH PROPOSAL
Since I'm going through Kokonotsuba's HTML/CSS output and overhauling it anyway (and since Kokonotsuba makes use of HTML5-only features such as
<video>
tags, localstorage, etc.), should I rewrite Kokonotsuba's existing HTML to be HTML5-compliant?Note that I wouldn't use non-backwards compatible tags just for the sake of it, although they often fail gracefully and there are ways you can provide fallbacks for older browsers while still supporting newer features. I recommend reading https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/HTML_and_CSS#common_cross_browser_problems
TEH BENEFITS
TEH NOT SO BENEFITS
TEH CHANGES
If Kokonotsuba is to go full HTML5, here's a few examples of things that will be changed:
<meta />
-><meta>
)<center>
,<font>
,align=
,border=
, etc.) with valid alternativesmargin-bottom
to add space below an element instead of<br>
)<span style="color: red;"><div>
-><div class="redText">
)