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:
1
NEWS
1
NEWS
@@ -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
|
||||||
|
@@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user