Captions with formatting can produce nested spans
See original GitHub issueThe getCueAsHTML()
method converts cue markup to html. For example:
<v John Green>The human tongue is like <i.foreignphrase><lang ja>wasabi</lang></i>: it's very powerful, and should be used sparingly</v>
This will be converted to:
<span title="John Green">The human tongue is like <i class="foreignphrase"><span lang="ja">wasabi</span></i>: it's very powerful, and should be used sparingly</span>
<span>
can be added for metadata, but since Plyr uses span for styling the cue directly this causes issues.
(Opacity has been increased to better illustrate the issue)
It happens in both Chrome and Firefox (haven’t tested it in any other browser).
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
The Content Span element - HTML - MDN Web Docs
It can be used to group elements for styling purposes (using the class or id attributes), or because they share attribute values, such...
Read more >Tables in HTML documents
The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into...
Read more >Markdown Basics - Quarto
Markdown is a plain text format that is designed to be easy to write, and, even more importantly, easy to read: A Markdown-formatted...
Read more >CSS nested spans and width attribute - Stack Overflow
The box class gives it a border. Width gets applied only if I have wide and box together. Can someone explain to me...
Read more >Markdown Syntax Documentation - Daring Fireball
To indicate a span of code, wrap it with backtick quotes ( ` ). Unlike a pre-formatted code block, a code span indicates...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
An additional selector would be cleaner though I suppose.
plyr__caption
or something.Yeah I think we’d just need to add a
>
child combinator.