mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
Slightly alter tag hierarchy so that Empty doesn't inherit from Start.
git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@33 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
7c6775d552
commit
2782d7499a
@ -14,16 +14,17 @@ class MF_Tag extends MF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class MF_StartTag extends MF_Tag
|
class MF_TagWithAttributes extends MF_Tag
|
||||||
{
|
{
|
||||||
var $attributes = array();
|
var $attributes = array();
|
||||||
function MF_StartTag($type, $attributes = array()) {
|
function MF_TagWithAttributes($type, $attributes = array()) {
|
||||||
$this->MF_Tag($type);
|
$this->MF_Tag($type);
|
||||||
$this->attributes = $attributes;
|
$this->attributes = $attributes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class MF_EmptyTag extends MF_StartTag {}
|
class MF_StartTag extends MF_TagWithAttributes {}
|
||||||
|
class MF_EmptyTag extends MF_TagWithAttributes {}
|
||||||
class MF_EndTag extends MF_Tag {}
|
class MF_EndTag extends MF_Tag {}
|
||||||
|
|
||||||
class MF_Text extends MF
|
class MF_Text extends MF
|
||||||
|
Loading…
Reference in New Issue
Block a user