remove warnings in html5lib and fix tests.

Review URL: https://chromiumcodereview.appspot.com//12696003