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)
Core
Audio/Video: Playback
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.
| Reporter | ||
Comment 1•9 years ago
|
||
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.
| Reporter | ||
Updated•9 years ago
|
| Comment hidden (mozreview-request) |
Comment 3•9 years ago
|
||
| mozreview-review | ||
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+
Updated•8 years ago
|
Priority: -- → P3
Comment 4•3 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: bechen → nobody
Updated•3 years ago
|
Severity: normal → S3
| Assignee | ||
Comment 5•2 years ago
|
||
Updated•2 years ago
|
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
Comment 8•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox127:
--- → fixed
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.
Description
•