This module provides bridge between html5lib library and Drupal, so that features of html5lib can be used in Drupal.
For using this module, just copy the HTML5 folder from HTML5Lib Library and put it in sites/all/libraries folder and rename HTML5 folder to html5lib.
After this enable the module.
How to use this Module:
You can use Library function to traverse html, like below.