I'm using CF8 and when I validate my HTML using the
www.w3.org validator and I receive the following:
Line 848,
Column 89: NET-enabling start-tag requires SHORTTAG YES.
…pe="text" maxlength="50" size="35" /></td>
The sequence <FOO /> can be interpreted in at least two
different ways, depending on the DOCTYPE of the document. For HTML
4.01 Strict, the '/' terminates the tag <FOO (with an implied
'>'). However, since many browsers don't interpret it this way,
even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to
avoid it completely in pure HTML documents and reserve its use
solely for those written in XHTML.
I think I narrowed it down to the fact that I am using
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
-- which does not expect "/>" at the end of single short tags
like <input ...> tags. CF5 did not do this. Is there a wy to
turn off this behaviour in CF8?
Example:
<form ...>
<input type="text" name="firstname" />
...
</form>
needs to be:
<form ...>
<input type="text" name="firstname">
...
</form>