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