MDL-14894 html purifier updated, merged from MOODLE_19_STABLE

This commit is contained in:
skodak
2008-05-19 06:24:33 +00:00
parent b9b17c8a30
commit 14913ca4d5
27 changed files with 355 additions and 112 deletions
@@ -158,10 +158,9 @@ class HTMLPurifier_Strategy_MakeWellFormed extends HTMLPurifier_Strategy
// the parent
if (!isset($parent_info->child->elements[$token->name])) {
if ($e) $e->send(E_NOTICE, 'Strategy_MakeWellFormed: Tag auto closed', $parent);
// close the parent, then append the token
// close the parent, then re-loop to reprocess token
$result[] = new HTMLPurifier_Token_End($parent->name);
$result[] = $token;
$this->currentNesting[] = $token;
$this->inputIndex--;
continue;
}