An empty element with a class attribute might still be needed for script or metadata (e.g. eRDF) purposes.
If a class attribute is present, don't trim the element.
Additional info:
Just eyeballing, it looks like a minor change to parser.c around line 287 would fix it.
Original:
if ( attrGetID(element) || attrGetNAME(element) )
return no;
Proposed:
if ( attrGetID(element) || attrGetNAME(element) || attrGetCLASS(element) )
return no;
but I will defer to someone who knows the code better.
mdubinko@yahoo.com
Nobody/Anonymous ( nobody ) - 2008-04-15 17:03:58 PDT
6
Open
None
Nobody/Anonymous
HTML/XHTML Parser
Current - all platforms
Public
|
Date: 2008-05-18 05:35:29 PDT
|
|
Date: 2008-04-22 03:42:10 PDT
|
| Field | Old Value | Date | By |
|---|---|---|---|
| priority | 5 | 2008-04-22 03:42:10 PDT | arnaud02 |