diff options
author | Andrew Dolgov <[email protected]> | 2012-06-01 00:07:59 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-06-01 00:07:59 +0400 |
commit | c21a462d52bd32737c32c29b060da03b38f1c2e6 (patch) | |
tree | 83b1b0a5e5451b6c4b6556886e6b590da24ca12f /lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php | |
parent | 65dd90f2bae0f10aa8c4404df622d287e48b2544 (diff) |
remove htmlpurifier
Diffstat (limited to 'lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php')
-rw-r--r-- | lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php b/lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php deleted file mode 100644 index f4d8f640e..000000000 --- a/lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php - -/** - * Abstract class of a tag token (start, end or empty), and its behavior. - */ -class HTMLPurifier_Token_Tag extends HTMLPurifier_Token -{ - /** - * Static bool marker that indicates the class is a tag. - * - * This allows us to check objects with <tt>!empty($obj->is_tag)</tt> - * without having to use a function call <tt>is_a()</tt>. - */ - public $is_tag = true; - - /** - * The lower-case name of the tag, like 'a', 'b' or 'blockquote'. - * - * @note Strictly speaking, XML tags are case sensitive, so we shouldn't - * be lower-casing them, but these tokens cater to HTML tags, which are - * insensitive. - */ - public $name; - - /** - * Associative array of the tag's attributes. - */ - public $attr = array(); - - /** - * Non-overloaded constructor, which lower-cases passed tag name. - * - * @param $name String name. - * @param $attr Associative array of attributes. - */ - public function __construct($name, $attr = array(), $line = null, $col = null, $armor = array()) { - $this->name = ctype_lower($name) ? $name : strtolower($name); - foreach ($attr as $key => $value) { - // normalization only necessary when key is not lowercase - if (!ctype_lower($key)) { - $new_key = strtolower($key); - if (!isset($attr[$new_key])) { - $attr[$new_key] = $attr[$key]; - } - if ($new_key !== $key) { - unset($attr[$key]); - } - } - } - $this->attr = $attr; - $this->line = $line; - $this->col = $col; - $this->armor = $armor; - } -} - -// vim: et sw=4 sts=4 |