Bugzilla – Bug 937
Duplication of br-elements
Last modified: 2012-09-21 15:08:11 CEST
When parsing the String "<div>Hello<br></br></div>", it leads to multiplication of the br-element: "<div>Hello<br></br><br></br></div>".
I can't reproduce this. What I get is the same as what browsers do, which is "<div>Hello<br><br>", as expected -- with parse-error message saying, 'End tag “br”.' http://html5.validator.nu/parsetree/?parser=html5&content=%3Cdiv%3EHello%3Cbr%3E%3C%2Fbr%3E%3C%2Fdiv%3E&submit=Print+Tree
Resolving per comment 1. Indeed </br> behaves like <br> per spec for compatibility with legacy oddities.