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

shadowDOM for media checks #437

Merged
merged 3 commits into from
Jul 15, 2017
Merged

shadowDOM for media checks #437

merged 3 commits into from
Jul 15, 2017

Conversation

WilcoFiers
Copy link
Contributor

Should close #423.

return true;
// return false if any track has kind === 'description'
var out = !tracks.some(({ actualNode }) => (
actualNode.getAttribute('kind').toLowerCase() === 'descriptions'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add tests for both checks that ensures that th check returns without an exception when the markup looks like

<audio><track></track></audio>

i.e. no kind attribute at all

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right you are. .toLowerCase() wouldn't work. Will add/fix

@dylanb dylanb merged commit b7008e1 into shadowDOM Jul 15, 2017
@dylanb dylanb deleted the sd/media-checks branch July 15, 2017 14:27
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.

2 participants