Skip to content

Add area tag to default valid_tags in IFilterSchema#127

Merged
wesleybl merged 1 commit into
mainfrom
tag-area
Jul 10, 2026
Merged

Add area tag to default valid_tags in IFilterSchema#127
wesleybl merged 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.
@davisagli

Copy link
Copy Markdown
Member

Should I create an upgrade step for this?

@wesleybl You can if you want. I would make sure that it only allows area if map is still allowed. It's also ok if we skip the upgrade step and it is only allowed for new sites.

@thet thet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sounds good to me. I wonder if that would need an upgrade step in plone.app.upgrade, but I think that would lead to complicated upgrade logic to handle already customized valid, so imo no.

@wesleybl

Copy link
Copy Markdown
Member Author

Okay. Let's leave it without an upgrade step, then.

@wesleybl wesleybl merged commit 366a3db into main Jul 10, 2026
15 of 16 checks passed
@wesleybl wesleybl deleted the tag-area branch July 10, 2026 11:59
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

4 participants