You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
And similar for li: https://www.w3.org/TR/html5/grouping-content.html#the-li-element
So I think the cache validator is correct and we may need to fix htmlparser.js to get the proper nesting for the first example (the amp-sidebar is a direct child of the body, but the parser thinks it's a child of the first p tag).
Thank you for the test case!
This code fails JS validator and passes cache validator. Which is the correct behavior?
The text was updated successfully, but these errors were encountered: