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

Specify or describe ttm:role attribute inheritance model #231

Open
nigelmegitt opened this issue Apr 25, 2024 · 1 comment
Open

Specify or describe ttm:role attribute inheritance model #231

nigelmegitt opened this issue Apr 25, 2024 · 1 comment

Comments

@nigelmegitt
Copy link
Contributor

See also w3c/ttml2#1271 - I believe that the inheritance model of ttm:role is additive, but this is slightly unclear in TTML2. Suggest either explaining it in DAPT as a service to implementers, and possibly also gap-filling missing specification text in TTML2.

Specifically, in a case like:

<div ttm:role="action x-some-role-1">
  <p ttm:role="x-some-role-2">
    <!-- this p should end up with computed role of {"action", "x-some-role-1", "x-some-role-2"} -->
  </p>
</div>

It's easy to assume (as I did at first) that specifying a ttm:role attribute replaces any inherited role value, but there's no spec text to support that in TTML2; to the contrary, there is text that suggests that metadata, including role, specified on a content element applies to all of its descendant elements too.

I say "suggests" because there seems to be some vagueness in the case of metadata attributes on content elements, as raised in w3c/ttml2#1271.

@nigelmegitt
Copy link
Contributor Author

w3c/ttml2#1271 has been resolved, clarifying that metadata attributes on content elements are indeed treated the same way as metadata specified by child metadata elements.

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

No branches or pull requests

1 participant