Closed Bug 1348181 Opened 9 years ago Closed 2 years ago

[webvtt] fix webvtt-file-format-parsing/webvtt-cue-text-parsing-rules/tests/tree-building.html

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: bechen, Assigned: twisniewski)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

No description provided.
The input is: <ruby>test<rt>test</ruby>test The problem is that when we parse the "/" character, we only close the latest tag <rt>, we should close the <ruby> tag either.
Comment on attachment 8848436 [details] Bug 1348181 - </ruby> can also close the <rt>. https://reviewboard.mozilla.org/r/121354/#review123800 ::: dom/media/webvtt/vtt.jsm:406 (Diff revision 1) > + var endTag = t.substr(2).replace(">", ""); > + if (tagStack.length && tagStack[tagStack.length - 1] === endTag) { > tagStack.pop(); > current = current.parentNode; > + } else if (tagStack.length && > + tagStack[tagStack.length - 1] === "rt" && endTag ==="ruby") { nits : add one space before "ruby" ::: dom/media/webvtt/vtt.jsm:408 (Diff revision 1) > tagStack.pop(); > current = current.parentNode; > + } else if (tagStack.length && > + tagStack[tagStack.length - 1] === "rt" && endTag ==="ruby") { > + tagStack.pop(); > + current = current.parentNode; nits : could we share these codes for both cases? // tagStack.pop(); current = current.parentNode; //
Attachment #8848436 - Flags: review?(alwu) → review+

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: bechen → nobody
Severity: normal → S3
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/668e608216c6 update VTT parser so </ruby> also closes <rt>; r=alwu
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/46123 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: