- From: Jeremiah Morris <jeremiah@cnidr.org>
- Date: Tue, 20 Jan 2004 11:52:20 -0500
- To: Ian Hickson <ian@hixie.ch>
- Cc: www-validator@w3.org
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/>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 UTC