6
If null, class will auto-detect the doctype and, if matching XHTML 1.1 or
7
XHTML 2.0, will use the restrictive NMTOKENS specification of class. Otherwise,
8
it will use a relaxed CDATA definition. If true, the relaxed CDATA definition
9
is forced; if false, the NMTOKENS definition is forced. To get behavior
10
of HTML Purifier prior to 4.0.0, set this directive to false.
12
Some rational behind the auto-detection:
13
in previous versions of HTML Purifier, it was assumed that the form of
14
class was NMTOKENS, as specified by the XHTML Modularization (representing
15
XHTML 1.1 and XHTML 2.0). The DTDs for HTML 4.01 and XHTML 1.0, however
16
specify class as CDATA. HTML 5 effectively defines it as CDATA, but
17
with the additional constraint that each name should be unique (this is not
18
explicitly outlined in previous specifications).
19
--# vim: et sw=4 sts=4