Skip to content

Add area tag to default valid_tags in IFilterSchema#127

Open
wesleybl wants to merge 1 commit into
mainfrom
tag-area
Open

Add area tag to default valid_tags in IFilterSchema#127
wesleybl wants to merge 1 commit into
mainfrom
tag-area

Conversation

@wesleybl

@wesleybl wesleybl commented Jul 2, 2026

Copy link
Copy Markdown
Member

The HTML sanitizer allows <map> by default but strips its required child element <area>, making image maps unusable. Add <area> to the default valid_tags list so image maps work out of the box.

Closes plone/Products.CMFPlone#4348

@mister-roboto

Copy link
Copy Markdown

@wesleybl thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@wesleybl

wesleybl commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

@wesleybl

wesleybl commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

Should I create an upgrade step for this?

@wesleybl

wesleybl commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

@jenkins-plone-org please run jobs

The HTML sanitizer allows <map> by default but strips its required
child element <area>, making image maps unusable. Add <area> to the
default valid_tags list so image maps work out of the box.
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 sanitizer allows <map> but strips <area>, making image maps unusable

2 participants