W3C home > Mailing lists > Public > www-validator@w3.org > January 2004

Re: Web validator bug: doesn't catch unquoted href value

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 20 Jan 2004 16:17:21 +0000 (UTC)
To: Jeremiah Morris <jeremiah@cnidr.org>
Cc: www-validator@w3.org
Message-ID: <Pine.LNX.4.58.0401201611260.28506@dhalsim.dreamhost.com>

On Tue, 20 Jan 2004, Jeremiah Morris wrote:
>
> <a href=http://validator.w3.org/>Test</a>
>
> I get a "end tag for element 'A' which is not open" message.

This, although, surprising, is technically correct.

The form

   <foo/ bar /

...is short for:

   <foo> bar </foo>

...in SGML with the SHORTTAG NET option enabled (as in HTML).

So your case above is equivalent to:

   <a href="http:"></a>validator.w3.org/&gt;Test</a>

Hence the error message: The last </a> is extraneous as far as the
validator is concerned.

Note: The only user agents in common use that support this feature are
SGML-based validators. There are open bugs on making this work for other
browsers, e.g.:

   http://bugzilla.mozilla.org/show_bug.cgi?id=94284

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 20 January 2004 11:17:28 GMT

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