Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
14.6-rc-1
-
None
-
Unknown
-
Description
The lists of safe elements and attributes of the secure HTML element sanitizer are based on DOMPurify 2.3.8. Later DOMPurify versions (up to 3.4.17) allow the following additional safe elements and attributes, which the sanitizer should allow too:
- HTML elements: search, slot
- HTML attributes: inert, popover, part, exportparts, wrap
- SVG filter element: feDropShadow
- SVG attributes: amplitude, dominant-baseline, exponent, intercept, mask-type, pointer-events, slope, tablevalues, text-orientation, vector-effect
- MathML element: mprescripts
- MathML attribute: columnspacing
- URL schemes sms: and matrix: in the default list of allowed URLs (only relevant when unknown protocols are disallowed)
The attributes command, commandfor, popovertarget and popovertargetaction, which DOMPurify also allows, are left out: they only have an effect on buttons and inputs, which the sanitizer doesn't allow, and they reference elements of the page by id.
Attachments
Issue Links
- relates to
-
XCOMMONS-2426 Provide a component for filtering safe HTML elements and attributes
-
- Closed
-