This project has moved and is read-only. For the latest updates, please go here.

HTML5 support

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

Does the Html Agility Pack parse HTML5?

Nov 22, 2012 at 10: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 3: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.