7 When enabled, HTML Purifier will attempt to remove empty elements that
8 contribute no semantic information to the document. The following types
9 of nodes will be removed:
12 Tags with no attributes and no content, and that are not empty
13 elements (remove <code><a></a></code> but not
14 <code><br /></code>), and
17 Tags with no content, except for:<ul>
18 <li>The <code>colgroup</code> element, or</li>
20 Elements with the <code>id</code> or <code>name</code> attribute,
21 when those attributes are permitted on those elements.
26 Please be very careful when using this functionality; while it may not
27 seem that empty elements contain useful information, they can alter the
28 layout of a document given appropriate styling. This directive is most
29 useful when you are processing machine-generated HTML, please avoid using
30 it on regular user HTML.
33 Elements that contain only whitespace will be treated as empty. Non-breaking
34 spaces, however, do not count as whitespace.
37 This algorithm is not perfect; you may still notice some empty tags,
38 particularly if a node had elements, but those elements were later removed
39 because they were not permitted in that context, or tags that, after
40 being auto-closed by another tag, where empty. This is for safety reasons
41 to prevent clever code from breaking validation. The general rule of thumb:
42 if a tag looked empty on the way end, it will get removed; if HTML Purifier
43 made it empty, it will stay.
45 --# vim: et sw=4 sts=4