W3C home > Mailing lists > Public > www-validator@w3.org > July 2002

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

From: Tim Bagot <tsb-w3-validator-0006@earth.li>
Date: Sat, 27 Jul 2002 16:16:09 +0000 (UTC)
To: <www-validator@w3.org>
Cc: Erik Forsberg <forsberg@lysator.liu.se>
Message-ID: <Pine.LNX.4.33.0207271600150.895-100000@213-152-52-166.dsl.eclipse.net.uk>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:03 GMT