diff --git a/NEWS b/NEWS index 57a3511e..8d89d0da 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier - CSS Number algorithm improved - Autoclose now operates iteratively, i.e.
now has both span tags closed. +- Fix bug with trusted script handling in libxml versions later than 2.6.28. 2.1.3, released 2007-11-05 ! tests/multitest.php allows you to test multiple versions by running diff --git a/library/HTMLPurifier/Lexer/DOMLex.php b/library/HTMLPurifier/Lexer/DOMLex.php index 56bd4a48..9aef335b 100644 --- a/library/HTMLPurifier/Lexer/DOMLex.php +++ b/library/HTMLPurifier/Lexer/DOMLex.php @@ -90,10 +90,27 @@ class HTMLPurifier_Lexer_DOMLex extends HTMLPurifier_Lexer $tokens[] = $this->factory->createText($node->data); return; } elseif ($node->nodeType === XML_CDATA_SECTION_NODE) { - // undo DOM's special treatment of