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

Allow data attributes in span tags #364

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

pezholio
Copy link
Contributor

The work we’re doing in Content Modelling means we will be rendering content blocks within span tags with data attributes, which will make identifying content blocks easier. As we may be re-presenting content block embeds to Govspeak, we need to ensure that these tags don’t get stripped out, so we need to add data-* attributes to the allowlist for span tags.

The work we’re doing in Content Modelling means we will be rendering
content blocks within span tags with data attributes, which will make
identifying content blocks easier. As we may be re-presenting content
block embeds to Govspeak, we need to ensure that these tags don’t get
stripped out, so we need to add `data-*` attributes to the allowlist for
span tags.
@pezholio pezholio force-pushed the allow-data-attributes-in-spans branch from 673f36c to da5d537 Compare November 18, 2024 13:14
@pezholio pezholio force-pushed the allow-data-attributes-in-spans branch from da5d537 to 98b6cf5 Compare November 18, 2024 13:45
@pezholio pezholio requested a review from brucebolt November 18, 2024 13:45
CHANGELOG.md Outdated
@@ -1,4 +1,8 @@
# 8.6.1
# 8.7.0
Copy link
Member

Choose a reason for hiding this comment

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

Could you make this a h2 (##) so it's consistent with the other entries?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! 🎉

@pezholio pezholio force-pushed the allow-data-attributes-in-spans branch from 98b6cf5 to a48907c Compare November 18, 2024 14:07
@pezholio pezholio enabled auto-merge November 18, 2024 14:07
@pezholio pezholio merged commit eb06c17 into main Nov 18, 2024
9 checks passed
@pezholio pezholio deleted the allow-data-attributes-in-spans branch November 18, 2024 14:08
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