mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-30 19:00:10 +02:00
Fix #67, don't use <body> tags in comments for %Core.ConvertDocumentToFragment
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
This commit is contained in:
@@ -169,6 +169,16 @@ class HTMLPurifier_LexerTest extends HTMLPurifier_Harness
|
||||
$this->assertExtractBody('<body>foo</body>bar</body>', 'foo</body>bar');
|
||||
}
|
||||
|
||||
public function test_extractBody_ignoreCommented()
|
||||
{
|
||||
$this->assertExtractBody('$<!-- <body>foo</body> -->^');
|
||||
}
|
||||
|
||||
public function test_extractBody_butCanStillWork()
|
||||
{
|
||||
$this->assertExtractBody('<!-- b --><body>a</body>', 'a');
|
||||
}
|
||||
|
||||
// HTMLPurifier_Lexer->tokenizeHTML() --------------------------------------
|
||||
|
||||
public function assertTokenization($input, $expect, $alt_expect = array())
|
||||
|
Reference in New Issue
Block a user