]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/Node.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / Node.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * Abstract base node class that all others inherit from.\r
5 *\r
6 * Why do we not use the DOM extension? (1) It is not always available,\r
7 * (2) it has funny constraints on the data it can represent,\r
8 * whereas we want a maximally flexible representation, and (3) its\r
9 * interface is a bit cumbersome.\r
10 */\r
11abstract class HTMLPurifier_Node\r
12{\r
13 /**\r
14 * Line number of the start token in the source document\r
15 * @type int\r
16 */\r
17 public $line;\r
18\r
19 /**\r
20 * Column number of the start token in the source document. Null if unknown.\r
21 * @type int\r
22 */\r
23 public $col;\r
24\r
25 /**\r
26 * Lookup array of processing that this token is exempt from.\r
27 * Currently, valid values are "ValidateAttributes".\r
28 * @type array\r
29 */\r
30 public $armor = array();\r
31\r
32 /**\r
33 * When true, this node should be ignored as non-existent.\r
34 *\r
35 * Who is responsible for ignoring dead nodes? FixNesting is\r
36 * responsible for removing them before passing on to child\r
37 * validators.\r
38 */\r
39 public $dead = false;\r
40\r
41 /**\r
42 * Returns a pair of start and end tokens, where the end token\r
43 * is null if it is not necessary. Does not include children.\r
44 * @type array\r
45 */\r
46 abstract public function toTokenPair();\r
47}\r
48\r
49// vim: et sw=4 sts=4\r