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

Fixes HTML encoding in sample #187

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

PaulKinlan
Copy link
Member

Summary

Correctly encodes the HTML - this doesn't check the quoted HTML on any other page.

Fixes #186

@PaulKinlan PaulKinlan requested a review from dero June 24, 2022 17:32
<source src="av1.mp4" type="video/mp4; codecs=\"av01.0.04M.08\"">
<source src="hevc.mp4" type="video/mp4; codecs=\"hvc1\"">
<source src="vp9.mp4" type="video/webm; codecs=\"vp9\"">
<source src="av1.mp4" type="video/mp4" codecs="av01.0.04M.08">
Copy link
Collaborator

Choose a reason for hiding this comment

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

@PaulKinlan I don't believe codecs is a valid <source> attribute. In this context, codecs is a part of the MIME value and should be delimited by ; from the MIME type.

But you are onto something here. Escaping using \ is not allowed either, AFAIK. We should probably use single quotes around the type attribute value and keep " unescaped.

Like this:

<source src="av1.mp4" type='video/mp4; codecs="av01.0.04M.08"'>
<source src="hevc.mp4" type='video/mp4; codecs="hvc1"'>
<source src="vp9.mp4" type='video/webm; codecs="vp9"'>

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.

HTML Samples are encoded when they shouldn't be
2 participants