[whatwg] Tag Soup: Blocks-in-inlines
zcorpan at hotmail.com
Wed Jan 25 05:21:36 PST 2006
From: Lachlan Hunt <lachlan.hunt at lachy.id.au>
>Because there were no text nodes between the <em> start-tag and the <p>
>start tag, so putting it in there would be completely redundant and
>useless. Although putting it there will have no detrimental effect beyond
>wasting a minuscule amount of memory, so it really doesn't matter.
When do you insert the EM element node to the DOM? Should the parser wait
with inserting it until it knows what comes next? I think it makes more
sense to just insert the element when you have parsed the start tag,
regardless of what comes next.
More information about the whatwg