You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #46274 [HtmlSanitizer] Fix node renderer handling of self-closing (void) elements (omniError)
This PR was merged into the 6.1 branch.
Discussion
----------
[HtmlSanitizer] Fix node renderer handling of self-closing (void) elements
| Q | A
| ------------- | ---
| Branch? | 6.1
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#46258
| License | MIT
| Doc PR | n/a
When sanitizing an HTML string, the node renderer previously interpreted all empty (no children) nodes as being self-closing or void tags. This would result in invalid HTML being rendered in the result. This patch adds the list of valid void HTML5 elements and checks when a no-children node is encountered to see if the tag that is generated should be rendered as self-closing or not.
Commits
-------
29c3e56 [HtmlSanitizer] Fix node renderer handling of self-closing (void) elements
0 commit comments