Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow external language information to apply #257

Merged
merged 1 commit into from
Nov 16, 2015
Merged

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Nov 13, 2015

Make it possible for <track srclang> (or other external language)
to apply to the WebVTT nodes for the purpose of CSS :lang() matching,
glyph selection, etc.

"WebVTT cue text parsing rules" takes an optional fallback language.

The "rules for updating the display of WebVTT text tracks" also takes
an optional fallback language, since it is the entry point for HTML
and this algorithm then invokes the "WebVTT cue text parsing rules".

getCueAsHTML() does not provide a fallback language.

Fixes (1) in https://www.w3.org/Bugs/Public/show_bug.cgi?id=28255#c16.

zcorpan added a commit to whatwg/html that referenced this pull request Nov 13, 2015
The `<track srclang>` value (as well as in-band track language info)
should be forwarded to the track format's rendering rules.

For WebVTT, see w3c/webvtt#257
and https://www.w3.org/Bugs/Public/show_bug.cgi?id=28255.
@zcorpan
Copy link
Member Author

zcorpan commented Nov 13, 2015

Should the "List of WebVTT Node Objects" object have a "lang" attribute for the purpose of Selectors? (Similar to <lang ...>.)

https://w3c.github.io/webvtt/#selectordef-cue-selector

For the purposes of attribute selector matching, ... WebVTT Language Objects, which have a single attribute named "lang" whose value is the object’s applicable language.

@silviapfeiffer
Copy link
Member

LGTM. To hand down the lang setting to the suggested DocumentFragment's root node, you indeed need to keep it in the "List of WebVTT Node Objects" object.

Make it possible for `<track srclang>` (or other external language)
to apply to the WebVTT nodes for the purpose of CSS `:lang()` matching,
glyph selection, etc.

"WebVTT cue text parsing rules" takes an optional fallback language.

The "rules for updating the display of WebVTT text tracks" also takes
an optional fallback language, since it is the entry point for HTML
and this algorithm then invokes the "WebVTT cue text parsing rules".

`getCueAsHTML()` does not provide a fallback language.

Fixes (1) in https://www.w3.org/Bugs/Public/show_bug.cgi?id=28255#c16.
@zcorpan zcorpan merged commit a853eee into gh-pages Nov 16, 2015
@zcorpan zcorpan deleted the apply-external-lang branch November 16, 2015 09:21
zcorpan added a commit to whatwg/html that referenced this pull request Nov 16, 2015
The `<track srclang>` value (as well as in-band track language info)
should be forwarded to the track format's rendering rules.

For WebVTT, see w3c/webvtt#257
and https://www.w3.org/Bugs/Public/show_bug.cgi?id=28255.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants