diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-18 20:07:46 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-18 20:07:46 +0100 |
commit | adf17b677edeb2387671f6a0f12123e7497b5938 (patch) | |
tree | 8fd87d7bf5699488ffc12afa991011e80ac1011b /inc/3rdparty/htmlpurifier/HTMLPurifier/Node | |
parent | 894cd087f41d605f2f093aaad1300825f705e009 (diff) | |
download | wallabag-adf17b677edeb2387671f6a0f12123e7497b5938.tar.gz wallabag-adf17b677edeb2387671f6a0f12123e7497b5938.tar.zst wallabag-adf17b677edeb2387671f6a0f12123e7497b5938.zip |
remove 3rd libraries
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/Node')
3 files changed, 0 insertions, 149 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Comment.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Comment.php deleted file mode 100644 index 11f3245d..00000000 --- a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Comment.php +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /** | ||
4 | * Concrete comment node class. | ||
5 | */ | ||
6 | class HTMLPurifier_Node_Comment extends HTMLPurifier_Node | ||
7 | { | ||
8 | /** | ||
9 | * Character data within comment. | ||
10 | * @type string | ||
11 | */ | ||
12 | public $data; | ||
13 | |||
14 | /** | ||
15 | * @type bool | ||
16 | */ | ||
17 | public $is_whitespace = true; | ||
18 | |||
19 | /** | ||
20 | * Transparent constructor. | ||
21 | * | ||
22 | * @param string $data String comment data. | ||
23 | * @param int $line | ||
24 | * @param int $col | ||
25 | */ | ||
26 | public function __construct($data, $line = null, $col = null) | ||
27 | { | ||
28 | $this->data = $data; | ||
29 | $this->line = $line; | ||
30 | $this->col = $col; | ||
31 | } | ||
32 | |||
33 | public function toTokenPair() { | ||
34 | return array(new HTMLPurifier_Token_Comment($this->data, $this->line, $this->col), null); | ||
35 | } | ||
36 | } | ||
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Element.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Element.php deleted file mode 100644 index 7db4d025..00000000 --- a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Element.php +++ /dev/null | |||
@@ -1,59 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /** | ||
4 | * Concrete element node class. | ||
5 | */ | ||
6 | class HTMLPurifier_Node_Element extends HTMLPurifier_Node | ||
7 | { | ||
8 | /** | ||
9 | * The lower-case name of the tag, like 'a', 'b' or 'blockquote'. | ||
10 | * | ||
11 | * @note Strictly speaking, XML tags are case sensitive, so we shouldn't | ||
12 | * be lower-casing them, but these tokens cater to HTML tags, which are | ||
13 | * insensitive. | ||
14 | * @type string | ||
15 | */ | ||
16 | public $name; | ||
17 | |||
18 | /** | ||
19 | * Associative array of the node's attributes. | ||
20 | * @type array | ||
21 | */ | ||
22 | public $attr = array(); | ||
23 | |||
24 | /** | ||
25 | * List of child elements. | ||
26 | * @type array | ||
27 | */ | ||
28 | public $children = array(); | ||
29 | |||
30 | /** | ||
31 | * Does this use the <a></a> form or the </a> form, i.e. | ||
32 | * is it a pair of start/end tokens or an empty token. | ||
33 | * @bool | ||
34 | */ | ||
35 | public $empty = false; | ||
36 | |||
37 | public $endCol = null, $endLine = null, $endArmor = array(); | ||
38 | |||
39 | public function __construct($name, $attr = array(), $line = null, $col = null, $armor = array()) { | ||
40 | $this->name = $name; | ||
41 | $this->attr = $attr; | ||
42 | $this->line = $line; | ||
43 | $this->col = $col; | ||
44 | $this->armor = $armor; | ||
45 | } | ||
46 | |||
47 | public function toTokenPair() { | ||
48 | // XXX inefficiency here, normalization is not necessary | ||
49 | if ($this->empty) { | ||
50 | return array(new HTMLPurifier_Token_Empty($this->name, $this->attr, $this->line, $this->col, $this->armor), null); | ||
51 | } else { | ||
52 | $start = new HTMLPurifier_Token_Start($this->name, $this->attr, $this->line, $this->col, $this->armor); | ||
53 | $end = new HTMLPurifier_Token_End($this->name, array(), $this->endLine, $this->endCol, $this->endArmor); | ||
54 | //$end->start = $start; | ||
55 | return array($start, $end); | ||
56 | } | ||
57 | } | ||
58 | } | ||
59 | |||
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Text.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Text.php deleted file mode 100644 index f51d861a..00000000 --- a/inc/3rdparty/htmlpurifier/HTMLPurifier/Node/Text.php +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /** | ||
4 | * Concrete text token class. | ||
5 | * | ||
6 | * Text tokens comprise of regular parsed character data (PCDATA) and raw | ||
7 | * character data (from the CDATA sections). Internally, their | ||
8 | * data is parsed with all entities expanded. Surprisingly, the text token | ||
9 | * does have a "tag name" called #PCDATA, which is how the DTD represents it | ||
10 | * in permissible child nodes. | ||
11 | */ | ||
12 | class HTMLPurifier_Node_Text extends HTMLPurifier_Node | ||
13 | { | ||
14 | |||
15 | /** | ||
16 | * PCDATA tag name compatible with DTD, see | ||
17 | * HTMLPurifier_ChildDef_Custom for details. | ||
18 | * @type string | ||
19 | */ | ||
20 | public $name = '#PCDATA'; | ||
21 | |||
22 | /** | ||
23 | * @type string | ||
24 | */ | ||
25 | public $data; | ||
26 | /**< Parsed character data of text. */ | ||
27 | |||
28 | /** | ||
29 | * @type bool | ||
30 | */ | ||
31 | public $is_whitespace; | ||
32 | |||
33 | /**< Bool indicating if node is whitespace. */ | ||
34 | |||
35 | /** | ||
36 | * Constructor, accepts data and determines if it is whitespace. | ||
37 | * @param string $data String parsed character data. | ||
38 | * @param int $line | ||
39 | * @param int $col | ||
40 | */ | ||
41 | public function __construct($data, $is_whitespace, $line = null, $col = null) | ||
42 | { | ||
43 | $this->data = $data; | ||
44 | $this->is_whitespace = $is_whitespace; | ||
45 | $this->line = $line; | ||
46 | $this->col = $col; | ||
47 | } | ||
48 | |||
49 | public function toTokenPair() { | ||
50 | return array(new HTMLPurifier_Token_Text($this->data, $this->line, $this->col), null); | ||
51 | } | ||
52 | } | ||
53 | |||
54 | // vim: et sw=4 sts=4 | ||