diff --git a/NEWS b/NEWS index 0f142390..71cb1352 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier 1.1.3, unknown projected release date (bugfix release, may be dropped if no major bugs are found before features) - Documentation updated +- Type variable in HTMLDefinition was not being set properly, fixed 1.1.2, released 2006-09-30 ! Add HTMLPurifier.auto.php stub file that configures include_path diff --git a/library/HTMLPurifier/HTMLDefinition.php b/library/HTMLPurifier/HTMLDefinition.php index 9ef7d1c1..5ce9bc2b 100644 --- a/library/HTMLPurifier/HTMLDefinition.php +++ b/library/HTMLPurifier/HTMLDefinition.php @@ -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'; }