This project has moved. For the latest updates, please go here.

HTML5 support

Topics: Developer Forum, Project Management Forum, User Forum
Sep 26, 2012 at 8:27 PM

Does the Html Agility Pack parse HTML5?

Nov 22, 2012 at 9:02 AM

Html Agility Pack should be able to parse HTML5 without any problems, so long as a logical structure expected of valid HTML is provided. After a quick look through the specification the only possibly shortfall that I could think of was embedded content; Files stored directly within the HTML itself. Even if this was the case such content is likely to be encoded in base64, alleviating some of the problems regarding accidentally using reserved HTML characters; such as '<' and '>'.

Apr 14, 2015 at 2:52 PM
It also fails with non-self-closing tags (which is valid in HTML5)

E.g. it converts:
<audio controls="">
    <source src="my.mp3" type="audio/mpeg">
<audio controls="">
    <source src="my.mp3" type="audio/mpeg"></source>
which is invalid.