Skip to content

Fixes HTML encoding in sample#187

Open
PaulKinlan wants to merge 1 commit intodevelopfrom
PaulKinlan-patch-1
Open

Fixes HTML encoding in sample#187
PaulKinlan wants to merge 1 commit intodevelopfrom
PaulKinlan-patch-1

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