0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-09 15:28:40 +00:00

Fix contenteditable attribute definition (#336)

This commit is contained in:
Kieran 2022-09-12 15:53:24 +01:00 committed by GitHub
parent dc27c78871
commit f1d6da13bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class HTMLPurifier_HTMLModule_CommonAttributes extends HTMLPurifier_HTMLModule
'class' => 'Class', 'class' => 'Class',
'id' => 'ID', 'id' => 'ID',
'title' => 'CDATA', 'title' => 'CDATA',
'contenteditable' => 'ContentEditable',
), ),
'Lang' => array(), 'Lang' => array(),
'I18N' => array( 'I18N' => array(

View File

@ -258,6 +258,13 @@ class HTMLPurifier_Strategy_ValidateAttributesTest extends
); );
} }
public function testContentEditableAttribute()
{
$this->assertResult(
'<div contenteditable="false"></div>',
'<div contenteditable="false"></div>'
);
}
} }
// vim: et sw=4 sts=4 // vim: et sw=4 sts=4