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

fix missing title attribute on <iframe> tag suggested for embedding #3901

Merged
merged 6 commits into from
Mar 31, 2021
Merged

fix missing title attribute on <iframe> tag suggested for embedding #3901

merged 6 commits into from
Mar 31, 2021

Conversation

pthavarasa
Copy link
Contributor

fixed this issue. Now there is a title in the iframe tag.
share video -> video title
share playlist -> playlist title
share playlist video(right click in the video to copy embed) -> video title

client/src/assets/player/utils.ts Show resolved Hide resolved
server/controllers/services.ts Outdated Show resolved Hide resolved
@rigelk rigelk changed the title fix: title attribute is missing on <iframe> tag suggested for embedding #3861 fix missing title attribute on <iframe> tag suggested for embedding Mar 30, 2021
@rigelk rigelk linked an issue Mar 30, 2021 that may be closed by this pull request
@@ -88,7 +88,7 @@ describe('Test services', function () {

const res = await getOEmbed(server.url, oembedUrl)
const expectedHtml = '<iframe width="560" height="315" sandbox="allow-same-origin allow-scripts" ' +
`src="http://localhost:${server.port}/video-playlists/embed/${playlistUUID}" ` +
`title="${video.name}" src="http://localhost:${server.port}/video-playlists/embed/${playlistUUID}" ` +
Copy link
Owner

@Chocobozzz Chocobozzz Mar 30, 2021

Choose a reason for hiding this comment

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

Should be title="The Life and Times of Scrooge McDuck" since it's the playlist embed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can i assign directly the string ?

@Chocobozzz
Copy link
Owner

Thanks @pthavarasa!

@Chocobozzz Chocobozzz merged commit 4097c6d into Chocobozzz:develop Mar 31, 2021
@lunar-debian
Copy link

👍 Thanks @pthavarasa and @Chocobozzz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

title attribute is missing on <iframe> tag suggested for embedding
4 participants