Skip to content

Conversation

@shermansiu
Copy link
Contributor

@shermansiu shermansiu commented Sep 2, 2023

The fix makes the iframe replacement regex more robust.

The problem lies on the Racing Kings variant page: the embedded YouTube player doesn't work.

This happens because the Racing Kings iframe ends in allowfullscreen="" title="Racing Kings variant - Blitz Chess w/ commentary"></iframe>, which means that it is not picked up by the regex in ddc248d, which is supposed to detect the iframe tag and add the credentialless attribute. As a result, that attribute was not added to the YouTube iframe tag for the Racing Kings page.

Tests have been added for this extra case as well.

@ornicar ornicar merged commit 4efb422 into lichess-org:master Sep 8, 2023
@shermansiu shermansiu deleted the fix/youtube-racing-kings-credentialless branch September 8, 2023 15:36
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