Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Is Vanilla HTML4, XHTML4 or HTML5?
mtschirs
✭✭✭
It seems the library/core (Garden framework) is build to output XHTML4 code. E.g. Gdn_Form::escapeID() escapes according to (X)HTML4 specification. There are probably more such cases to be found. However, most views write HTML4/5 code.
Can we update Garden to HTML5? Or at least decide on one document type? Or if both is not possible, make Garden document type agnostic?
Tagged:
1
Comments
It technically is php that relies on smarty to sprew html5 if using a tpl smarty template. That is my own simplification based on what I see. If the template , as in default.master.tpl . But if the theme uses a default.master.php it spews html4 strict.
As far as I understand, html5 allows for simplified ways via smarty to execute php.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
It was XHTML 1.0 (strict) originally, but was later changed to HTML5, hence the HTML 5 doctype:
You can actually have both XML validity and HTML5 validity. They are seperate concerns. e.g.
<br />
and<br>
are both valid HTML5.https://validator.w3.org/nu/?doc=http://vanillaforums.org/discussions
As you can see there are a few problems, one I already pointed out and one I fixed this morning.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
Throughout all of the core library, htmlspecialchars() is used with the default ENT_HTML401 which handles code as HTML 4.01.
The difference between ENT_HTML401 and ENT_HTML5 is that
'
is replaced with'
instead of'
.Not really worth settings flags for that everywhere.
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS