Re: Optional tags

On Tue, 21 Jan 2014 11:41:46 +0100, Mathias Nater <mnater@mac.com> wrote:

> Hi
>
> The rules for omitting tags  
> (http://www.w3.org/html/wg/drafts/html/CR/syntax.html#optional-tags) are  
> not very clear to me.
> What does „[the] element is immediately followed by […]“ exactly mean?
>
> Example:
> Is
>
> <p>foo
> <p>bar
>
> valid? (there’s a newline after foo)
> Or has it to be
>
> <p>foo<p>bar
>
> ?
> If the first is valid, will the nodeValue of the  
> HTMLParagraphElement.firstChild contain the newline?
>
> Thanks for clarification.

Is the spec clearer now?

http://www.whatwg.org/specs/web-apps/current-work/multipage/syntax.html#optional-tags

-- 
Simon Pieters
Opera Software

Received on Wednesday, 29 January 2014 11:12:53 UTC