Re: validator.w3.org not catching stale " in width-specification of table

At 2002-07-27T05:36-0400, Erik Forsberg wrote:-

> --snip--
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>
> 	<title>Test of the validator</title></head>
> <body>
> <table border="0" cellpadding="0" cellspacing="0" width="100%>"
> <tr>
[...]
> --snap--

> Notice the table-tag and the fact that the second '"' is outside the
> tag. Is that really correct HTML?

It is certainly /valid/ HTML. If you look at the parse tree, you will see
that the width attribute has value "100%>". The table start tag (*not* the
table element) is unclosed, but that is (in theory) allowed by SGML. It
is, of course, not /correct/ HTML, because "100%>" is not permissible as a
length (and because the use of various SGML SHORTTAG constructions is
strongly deprecated, since few UAs incorporate anything remotely
resembling a proper SGML parser).


Tim Bagot

Received on Saturday, 27 July 2002 12:16:19 UTC