1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-05 21:57:26 +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:
Edward Z. Yang
2006-11-04 05:03:53 +00:00
parent 4ee1bf94e3
commit 84e3a28001
2 changed files with 3 additions and 3 deletions

1
NEWS
View File

@@ -20,6 +20,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
1.1.3, unknown projected release date 1.1.3, unknown projected release date
(bugfix release, may be dropped if no major bugs are found before features) (bugfix release, may be dropped if no major bugs are found before features)
- Documentation updated - Documentation updated
- Type variable in HTMLDefinition was not being set properly, fixed
1.1.2, released 2006-09-30 1.1.2, released 2006-09-30
! Add HTMLPurifier.auto.php stub file that configures include_path ! Add HTMLPurifier.auto.php stub file that configures include_path

View File

@@ -236,13 +236,12 @@ class HTMLPurifier_HTMLDefinition
// info[]->type : defines the type of the element (block or inline) // info[]->type : defines the type of the element (block or inline)
// reuses $e_Inline and $e_Block // reuses $e_Inline and $e_Block
foreach ($e_Inline->elements as $name => $bool) {
foreach ($e_Inline->elements as $name) {
$this->info[$name]->type = 'inline'; $this->info[$name]->type = 'inline';
} }
$e_Block = new HTMLPurifier_ChildDef_Optional($e_block); $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'; $this->info[$name]->type = 'block';
} }