This issue has been created
There are 2 updates.
 
 
XWiki Commons / cid:jira-generated-image-avatar-2ff84026-271f-435d-94de-356c469c51a2 XCOMMONS-3870 Open

The HTML sanitizer removes the MathML columnalign attribute

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4db8083b-e58e-499a-ab4e-b8cd170dc39c Michael Hamann created this issue on 02/Nov/26 10:41
 
Summary: The HTML sanitizer removes the MathML columnalign attribute
Issue Type: cid:jira-generated-image-avatar-2ff84026-271f-435d-94de-356c469c51a2 Bug
Affects Versions: 14.6-rc-1
Assignee: Unassigned
Components: XML
Created: 02/Nov/26 10:41
Priority: cid:jira-generated-image-static-minor-d76d108b-78a8-4f7c-929a-adbc2c3decab Minor
Reporter: Michael Hamann
Description:

The secure HTML element sanitizer allows the MathML attribute columnsalign, which doesn't exist, instead of columnalign, which aligns the cells in the columns of an mtable. As a consequence, columnalign is removed in restricted HTML cleaning (e.g., HTML macros written by users without script right).

The typo was copied from DOMPurify, which fixed it in a later version.

Steps to reproduce

  1. As a user without script right, create a page with:
    {{html}}
    <math xmlns="http://www.w3.org/1998/Math/MathML"><mtable columnalign="left"><mtr><mtd><mn>1</mn></mtd></mtr><mtr><mtd><mn>1000</mn></mtd></mtr></mtable></math>
    {{/html}}
    

Expected: the numbers are left-aligned.
Actual: the columnalign attribute is removed.

 
 

2 updates

 
cid:jira-generated-image-avatar-4db8083b-e58e-499a-ab4e-b8cd170dc39c Changes by Michael Hamann on 02/Nov/26 10:41
 
Fix Version: 18.10.0-rc-1
Assignee: Michael Hamann