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

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

From: Jeremiah Morris <jeremiah@cnidr.org>
Date: Tue, 20 Jan 2004 11:52:20 -0500
Message-Id: <03489ED7-4B69-11D8-847B-000393A6DE36@cnidr.org>
Cc: www-validator@w3.org
To: Ian Hickson <ian@hixie.ch>

On 20 Jan 2004, at 11:17 AM, Ian Hickson wrote:

> 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.

Wow, how interesting!  No matter how much I learn about SGML, there's 
always another cool thing lurking around the corner.  :)  Mind you, I'm 
not saying that I'm sure it's a good idea, but it definitely is cool.

Thanks for the info!
- Jeremiah


>
> 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:52:24 GMT

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