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
AO3-5693 Support HTML5 media tags #3637
Conversation
def sanitized_classes | ||
user_classes.split(" "). | ||
select { |user_class| valid_class?(user_class) }. | ||
join(" ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/MultilineMethodCallIndentation: Use 2 (not 13) spaces for indenting an expression spanning multiple lines.
# then rejoin them | ||
def sanitized_classes | ||
user_classes.split(" "). | ||
select { |user_class| valid_class?(user_class) }. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/MultilineMethodCallIndentation: Use 2 (not 13) spaces for indenting an expression spanning multiple lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple comments/questions. I haven't checked the EmbedSanitizer yet, though, so feel free to ignore them until them.
Just noting that I don't have any additional comments on |
Just switching labels since this has been reviewed and needs a few tweaks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are comments remaining:
- Hound's Performance/Casecmp recommendations: AO3-5693 Support HTML5 media tags #3637 (comment) and AO3-5693 Support HTML5 media tags #3637 (comment).
- AO3-5693 Support HTML5 media tags #3637 (comment)
Otherwise looks good to me. I've collapsed the rest.
Issue
https://otwarchive.atlassian.net/browse/AO3-5693
Purpose
Adds support for audio and video tags in the same fields that allow video embeds and sets up a blacklist option in the config. Also extracts the existing sanitize transformers out into separate files for improved comprehensibility.
Testing Instructions
See issue for which attributes are allowed and which should be stripped out by the sanitizer.