[whatwg] Parsing: should <foo><dd></foo> close the DD?

On Fri, 20 Apr 2007, Simon Pieters wrote:
>
> I sent a bug report to Opera saying that given the markup 
> "<foo><dd></foo>X", X should be a sibling to FOO instead of a child of 
> DD. According to Anne the bug report was invalid per the current spec:
> 
> On Fri, 20 Apr 2007 09:03:29 +0200, <bug-261248-s1234 at bugs.opera.com> wrote:
> 
> > I think this bug report is invalid. When you hit </foo> <dd> is the 
> > bottommost node of the stack. <dd> is in neither the formatting nor 
> > phrasing category (it's in special) and therefore the </foo> end tag 
> > is ignored.
> 
> However, in IE, Firefox and Safari, the DD does get closed at </foo>, so 
> perhaps this is a bug in the spec?

I could only get </foo> to close the <dd> in Firefox.

In IE, the <foo> is treated as a void element.

Opera and Safari seem to follow the spec.

Without further evidence that this breaks things, I'd rather just leave 
the spec as is.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 19 June 2007 16:03:55 UTC