Page MenuHomePhabricator

Sanitizer doesn't validate attribute values according to DTD
Closed, DeclinedPublic

Description

Sanitizer lets out <br clear="both" />

<br clear="both" /> makes the page invalid ( http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-transitional.dtd_br ), the result should be

either <br style="clear: both;" /> or <br clear="all" />


Version: unspecified
Severity: normal
URL: http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Transitional

Details

Reference
bz10218

Related Objects

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:48 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz10218.
bzimport added a subscriber: Unknown Object (MLST).

Sanitizer doesn't currently validate the contents of attributes which have value restrictions in the DTD.

Marking as WONTFIX. We don't support XHTML 1.0 and DTDs are irrelevant now. Backing out of support for deprecated/removed attributes is bug 24529.