mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-22 16:31:53 +00:00
Fix incorrect PEARSax3 test assertion.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
feeffe6ed2
commit
c9e7ffc172
@ -755,6 +755,15 @@ div {}
|
||||
}
|
||||
|
||||
function test_tokenizeHTML_imgTag() {
|
||||
$start = array(
|
||||
new HTMLPurifier_Token_Start('img',
|
||||
array(
|
||||
'src' => 'img_11775.jpg',
|
||||
'alt' => '[Img #11775]',
|
||||
'id' => 'EMBEDDED_IMG_11775',
|
||||
)
|
||||
)
|
||||
);
|
||||
$this->assertTokenization(
|
||||
'<img src="img_11775.jpg" alt="[Img #11775]" id="EMBEDDED_IMG_11775" >',
|
||||
array(
|
||||
@ -767,15 +776,8 @@ div {}
|
||||
)
|
||||
),
|
||||
array(
|
||||
'DirectLex' => array(
|
||||
new HTMLPurifier_Token_Start('img',
|
||||
array(
|
||||
'src' => 'img_11775.jpg',
|
||||
'alt' => '[Img #11775]',
|
||||
'id' => 'EMBEDDED_IMG_11775',
|
||||
)
|
||||
)
|
||||
),
|
||||
'DirectLex' => $start,
|
||||
'PEARSax3' => $start,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user