W3C home > Mailing lists > Public > www-validator@w3.org > November 2011

Re: [VE][247] Add Subject Here

From: Philip TAYLOR <P.Taylor@Rhul.Ac.Uk>
Date: Wed, 16 Nov 2011 19:39:58 +0000
Message-ID: <4EC4118E.7030904@Rhul.Ac.Uk>
To: Ville Skyttä <ville.skytta@iki.fi>
CC: "Jukka K. Korpela" <jkorpela@cs.tut.fi>, www-validator@w3.org


Ville Skyttä wrote:
> On 11/16/2011 06:32 PM, Jukka K. Korpela wrote:
>
>> Per the rules of HTML 4.01, the construct is equivalent to
>> <img src="pic1.jpg" width="200" height="200" alt="alathitunguang1">>
>> which means that there is an extra ">" as data. Though this does not
>> make the document invalid,
>>
>> <base href=foo />
>>
>> would do that, as the extra ">" would be inside the<head>  element,
>> where character data is not allowed.
>
> Strictly speaking, it wouldn't necessarily make the document invalid,
> but I'm confident that the cases where it'd work as the author intended
> are very rare.
>
> http://www.w3.org/Bugs/Public/show_bug.cgi?id=14733

I think that Jukka (most unusually) was not 100% precise
in his explanation.  My understanding is as follows --

Given

	<base href=foo />

the extra ">" would not "be inside the <head> element",
but would instead trigger an automatic implied closure
of the <head> element, a further implied opening of
the <body> element, and the re-insertion of the ">"
into the body.  This would represent an error in HTML
4.01 Strict but not in HTML 4.01 Transitional.

If I have understood correctly, of course !

Philip Taylor
Received on Wednesday, 16 November 2011 19:40:27 GMT

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