mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-05 05:37:49 +02:00
[1.2.0] Type variable in HTMLDefinition was not being set properly, fixed. Minor bug because no other code actually uses the feature (todo: add unit test).
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@503 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -236,13 +236,12 @@ class HTMLPurifier_HTMLDefinition
|
||||
// info[]->type : defines the type of the element (block or inline)
|
||||
|
||||
// reuses $e_Inline and $e_Block
|
||||
|
||||
foreach ($e_Inline->elements as $name) {
|
||||
foreach ($e_Inline->elements as $name => $bool) {
|
||||
$this->info[$name]->type = 'inline';
|
||||
}
|
||||
|
||||
$e_Block = new HTMLPurifier_ChildDef_Optional($e_block);
|
||||
foreach ($e_Block->elements as $name) {
|
||||
foreach ($e_Block->elements as $name => $bool) {
|
||||
$this->info[$name]->type = 'block';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user