[VE][79] Horizontal Rule <hr> Tags Break Paragraphs

Error [79]: "end tag for element X which is not open"



Here’s an example, which validates the same way in Firefox, the W3C Validator (in 4.0.1 and 5), and in jsfiddle: http://jsfiddle.net/Lraps5oy/



While the reference states that any flow elements are permitted as parents (including the <p> tag), the <hr> tag breaks a paragraph it’s contained in so that it’s considered the end tag of a <p> tag. If you do have a closing </p> tag or text content after an <hr> tag, it’ll be considered an error.


One of the details mentioned with this error is that it can be caused “by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case),” which seems to make sense, except there is no error in validating the <hr> tag (nor should there be based on the specification).


Pluto

Received on Saturday, 16 August 2014 22:13:33 UTC