Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
HTML Tag Decorator incompatible with HTML5 void elements #94
In HTML5, void elements cannot have an end tag. http://www.w3.org/TR/html5/syntax.html#void-elements
This means that if you use an HTML5 doctype and the Tag Decorator to generate your
You can still get valid markup by calling
The good news there is that there's generally no problem serving HTML5 to pre-HTML5 browsers, as long as the browser is not in quirks mode. And a valid HTML5 doc type will not put browsers into quirks mode. So determining HTML5 safety (as opposed to support) is straightforward.
We have a few options here:
It might be worth figuring out if we want to move to that first option for 1.3. Forward-looking and all that.
In the meantime, we have the when-to-close-and-when-not-to-close-a-tag issue. I'm unaware of any real-world problems this causes. The only issue I've noticed is that it generates pages that then fail to validate. So the pages are technically incorrect. But the pages still work in the browsers I've tested.