commit | 80ccfaf557f5ad07e5de8bcc08e1aba84190b2a0 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Mon Sep 04 10:26:17 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Sep 04 10:26:17 2017 |
tree | caafe6576e7d868b6b376a6cb390c6eba2d59836 | |
parent | fb95760c3981b8df5f339ec635f1229f83c6e573 [diff] |
Support all of HTML's character entities in WebVTT This updates the VTTTokenizer to align with the updated WebVTT tokenizer steps: https://w3c.github.io/webvtt/#html-character-reference-in-data-state and https://w3c.github.io/webvtt/#html-character-reference-in-annotation-state The old states for handling "escapes" are removed, adding new ones per above, for invoking the HTML parser's entity matcher. A new WEBVTT_SWITCH_TO operation is also added so that state transitions can be performed without advancing the input position. (Matches mechanics of the HTML parser.) The WPT test webvtt/parsing/cue-text-parsing/tests/entities.html is updated since it had an incorrect expected result for the "¬it;" case. Old, now incorrect and/or redundant, tests for entities are removed. Bug: 761303 Change-Id: I8ffb4fb2da7169c2ba3c84eb8c3206daabefbb30 Reviewed-on: https://chromium-review.googlesource.com/647586 Reviewed-by: Philip Jägenstedt <foolip@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#499473}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .