mirror of
https://github.com/moodle/moodle.git
synced 2025-07-28 01:41:03 +02:00
Prior to this change, all the line endings in the imported HTMLPurifier library were using CRLF (\r\n aka Windows style), but the HTMLPurifier source and also the downloadable artefacts use LF (\n aka Linux style) as line endings. This has been the case since510d190382
when with the commit "MDL-38672 import HTML Purifier 4.5.0" all line endings were changed from LF to CRLF. There was no comment in the commit on why this change was done. As the original source uses LF, this commit partly reverts510d190382
and goes back to LF as line endings. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
20 lines
926 B
Plaintext
20 lines
926 B
Plaintext
Attr.ClassUseCDATA
|
|
TYPE: bool/null
|
|
DEFAULT: null
|
|
VERSION: 4.0.0
|
|
--DESCRIPTION--
|
|
If null, class will auto-detect the doctype and, if matching XHTML 1.1 or
|
|
XHTML 2.0, will use the restrictive NMTOKENS specification of class. Otherwise,
|
|
it will use a relaxed CDATA definition. If true, the relaxed CDATA definition
|
|
is forced; if false, the NMTOKENS definition is forced. To get behavior
|
|
of HTML Purifier prior to 4.0.0, set this directive to false.
|
|
|
|
Some rational behind the auto-detection:
|
|
in previous versions of HTML Purifier, it was assumed that the form of
|
|
class was NMTOKENS, as specified by the XHTML Modularization (representing
|
|
XHTML 1.1 and XHTML 2.0). The DTDs for HTML 4.01 and XHTML 1.0, however
|
|
specify class as CDATA. HTML 5 effectively defines it as CDATA, but
|
|
with the additional constraint that each name should be unique (this is not
|
|
explicitly outlined in previous specifications).
|
|
--# vim: et sw=4 sts=4
|