Re: Find a BUG of [ W3C Markup Validation Service ]

On 16 Jul 2014, at 7:00, De Xin DX Yuan wrote:

> Here is part of my code, you can find <p class="bodycopy1"> have not 
> been closed, but it show no error in W3C Markup Validation Service,

 From the HTML 5 specification:

> Tag omission in text/html:
>
> A p element's end tag may 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, 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.

http://www.w3.org/TR/html5/grouping-content.html#the-p-element

Your paragraph is immediately followed by another paragraph, so it is 
fine.

This isn't a bug.

-- 
David Dorward
http://dorward.co.uk/

Received on Wednesday, 16 July 2014 13:14:37 UTC