Author: avarab
Description:
using <br clear=all> breaks XHTML compilance. This patch fixes the issue.
Version: 1.5.x
Severity: blocker
Platform: Other
• bzimport | |
Mar 8 2005, 6:24 PM |
F1875: fixtags.php | |
Nov 21 2014, 8:14 PM |
F1874: Parser.php.patch | |
Nov 21 2014, 8:14 PM |
F1873: Parser.php.patch | |
Nov 21 2014, 8:14 PM |
Author: avarab
Description:
using <br clear=all> breaks XHTML compilance. This patch fixes the issue.
Version: 1.5.x
Severity: blocker
Platform: Other
Unknown Object (Diffusion Commit) |
avarab wrote:
The patch against includes/Parser.php (for REL1_4)
The patch against REL1_4.
Attached:
avarab wrote:
A testcase for the regular expression
A testcase for the expression.
Attached:
Several things wrong with this patch:
First, it does not appear to be notice-clean. With error_reporting set to E_ALL,
notices will be displayed about the use of undefined constants.
Second, it will fail to pick up any <br> containing additional attributes (for
instance, an id or a style attribute) so it is insufficient.
Third, it gratuitously transforms the clear attribute to an inline style. This is
unnecessary for our XHTML 1.0 Transitional target. (If it were necessary, it would
also be necessary to be able to merge it with a specified style attribute if present.)
Consider instead working on Sanitizer.php to have the HTML sanitizer output the
/> automatically on manditorily-closed empty elements.
avarab wrote:
insufficient.
render <br style="clear: both;" />, however if you type <br clear="all" /> or
<br clear="all"> it will output what you gave it.