Unable to add a "role" attribute to table tags
After running an accessibility scan, we found some tables on our site that do not have header tags since they are display-only and are not conveying data. The recommendation was to add role="presentation" to these table tags.
I added the following to /apps/cq/xssprotection/config.xml
<attribute name="role" description="The 'role' attribute describes the role of an element in programs that can make use of it, such as screen readers or magnifiers.">
<literal-list>
<literal value="toolbar"/>
<literal value="tooltip"/>
<literal value="feed"/>
<literal value="math"/>
<literal value="presentation"/>
<literal value="none"/>
<literal value="note"/>
</literal-list>
</attribute>Unfortunately, the role attribute is still stripped out after retrying to add it in the RTE
I then tried adding a regex to this, but that did not help.
I also tried removing the literal-list leaving only the regex.
I verified the role attribute is there in CRX.
What am I missing?
AEM On-Premise version 6.5.21.0
Core Component version 2.27.0
Core Text Component version 2