Re: [VE][247] Add Subject Here

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.

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


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