Re: Optional tags

On 1/21/14 5:41 AM, Mathias Nater wrote:
> What does „[the] element is immediately followed by […]“ exactly mean?

It means "if the end tag were inserted where you want it to be inserted, 
would the thing right after that end tag be the start tag for one of the 
listed elements?"

> Example:
> Is
>
> <p>foo
> <p>bar
>
> valid?

Yes.

> If the first is valid, will the nodeValue of the HTMLParagraphElement.firstChild contain the newline?

Yes.

-Boris

Received on Tuesday, 21 January 2014 15:26:15 UTC