[whatwg] A call for tighter validation standards

Much of what I wanted to discuss was discussed rather elegantly within a
post from August 2009
(http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-August/021725.html) on this mailing list, but I would like to take it a step further. Henri Sivonen made some very valid points within that post, and I agree with most of what he said.

I also wrote an open letter to the WHATWG on the HTMLCenter blog
(http://www.htmlcenter.com/blog/an-open-letter-to-whatwg/) laying out
some of my thoughts. I would like to use this message to build upon what
I wrote in that blog post, but I don't really want to rehash what I've
already said.

My main concerns about the current version of the HTML5 specs were laid
out pretty well by Henri in the mailing list message from August 2009 I
linked above. However, I wanted to reiterate the ones that concern me
and add my thoughts.

     1. Unquoted attributes
     2. Implied tags (such as leaving out a closing paragraph tag)
     3. Inconsistent use of the closing slash on empty elements

My concern with all three of these points is that they are relying on
the browser to interpret the coder's intent when rendering the elements.
The unquoted attributes and implied tags are subject to wide
interpretation by the browsers. Regarding the unquoted attributes, I
fear that new coders might not understand when and why attributes should
be quoted and will spend a lot of time wondering why their pages are not
rendering properly. For instance, imagine a new coder trying to declare
inline style definitions without quoting the style attributes. How will
a browser interpret something like:

<p style=width: 500px; height: 100px;>

It becomes even more dangerous in that height and width are actually
attributes of most HTML elements, so the browser will have to do quite a
bit of work to figure out what to do with these types of definitions.

The implied tags can be just as frightening. For instance (and I realize
this is not the best example, but it's the one I can think of at the
moment), what happens with the following:

HTML Version:
<p>This is some paragraph text.
<span>This is some more text</span>

XHTML Version:
<p>This is some paragraph text.</p>
<span>This is some more text.</span>

In the XHTML version above, it's obvious that the span will be separated
from the paragraph text. However, in the HTML version, browsers will
include the span in the paragraph (unless appropriate CSS is applied to
the span).

I would like to reiterate that I am not asking the WHATWG to recommend
browsers dropping support for any older HTML specs (in fact, I am very
much in support of the browsers continuing to support all older HTML
specs and, to the best of their ability, supporting HTML from before
there were specs and recommendations).

However, what I am asking is that the WHATWG consider writing the specs
so that those older, less rigid styles of coding do not validate
according to the standard. Coders will still be free to write the code
with implied closing tags, unquoted attributes and inconsistent use of
the closing slash, but I don't believe that type of code should
validate, as it does not conform to an actual standard, rather it
conforms to exceptions to standards.

In my blog post, I likened the looser standards of HTML5 to removing
laws against driving while intoxicated. Sure, abolishing those laws
would not force anyone to drive drunk, but without any legal
ramifications for doing so, it would be much more prevalent. As with
that example, if the standards for HTML are loosened as compared to
XHTML 1 (served as text/html), coders will not feel the need to code
neatly or consistently, and we will begin to slip back into the
spaghetti code we experienced throughout the 1990s.

I appreciate you taking the time to read this message, and I hope I can
have at least a little bit of an impact on the formation of these
standards. Thank you.


________________________________________________________________________

Curtiss Grymala
curtiss at ten-321.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20091022/d861fa83/attachment.htm>

Received on Thursday, 22 October 2009 19:55:37 UTC