[whatwg] On tag inference

Henri Sivonen hsivonen at iki.fi
Sun Sep 4 08:03:32 PDT 2005


On Sep 4, 2005, at 13:28, Anne van Kesteren wrote:

> Quoting Henri Sivonen <hsivonen at iki.fi>:
>> How should this list be augmented for HTML5? Eg. should a start tag 
>> for <section> close a paragraph?
>
> I do not think that would be a good idea. Changing the HTML parser is 
> not
> something browser vendors tend to like. I think HTML5 should just 
> require end
> tags in certain circumstances. Or perhaps just require them for some 
> elements,
> like the P element.

What about the interaction of <section> with <head> and <body>?

How would you insert the optional tags in this case:

<!DOCTYPE html>
<title>...</title>
<section>...</section>
<div>...</div>

?

My tentative assumption has been
<!DOCTYPE html>
<html><head><title>...</title>
</head><body><section>...</section>
<div>...</div></body></html>

(Assuming the data stream ends with </div>.)

Should the answer instead be

<!DOCTYPE html>
<html><head><title>...</title>
<section>...</section>
</head><body><div>...</div></body></html>

?

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/




More information about the whatwg mailing list