html5lib fixes for latest sdk

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