[html5] Optional end tag for P before FIGURE?

Ian Hickson ian at hixie.ch
Mon Oct 27 13:42:58 PDT 2014


On Fri, 3 Oct 2014, Ezequiel Garzón wrote:
>
> Greetings! Is there a reason FIGURE is not one of the elements before 
> which the P end tag may be omitted? The WHATWG and W3C validators do not 
> objetct, but it is not valid markup as I see it:
> 
> "A p element's end tag can be omitted if the p element is immediately 
> followed by an address, article, aside, blockquote, div, dl, fieldset, 
> footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, main, menu, 
> nav, ol, p, pre, section, table, or ul, element, or if there is no more 
> content in the parent element and the parent element is not an a 
> element."

Fixed, thanks for reporting this.

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


More information about the Help mailing list