File: Grammar.php

package info (click to toggle)
php-xml-htmlsax3 3.0.0%2Bcvs01112007-2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze, wheezy
  • size: 160 kB
  • ctags: 327
  • sloc: php: 1,060; xml: 152; makefile: 2
file content (72 lines) | stat: -rw-r--r-- 2,658 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
//
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2002 The PHP Group                                |
// +----------------------------------------------------------------------+
// | This source file is subject toversion 3.0 of the PHP license,      |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/3_0.txt.                                  |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Alexander Zhukov <alex@veresk.ru> Original port from Python |
// | Authors: Harry Fuecks <hfuecks@phppatterns.com> Port to PEAR + more  |
// | Authors: Many @ Sitepointforums Advanced PHP Forums                  |
// +----------------------------------------------------------------------+
//
// $Id: Grammar.php,v 1.2 2007/10/29 21:41:35 hfuecks Exp $
//
/**
* For dealing with HTML's special cases
* @package XML_HTMLSax3
* @version $Id: Grammar.php,v 1.2 2007/10/29 21:41:35 hfuecks Exp $
*/
/**
* Passed as fourth argument to opening and closing handler to signify
* a tag which was immediately closed like <this />
* @package XML_HTMLSax3
*/
define ('XML_HTMLSAX3_EMTPY',1);

/**
* Passed as fourth argument to opening and closing handler to signify
* special HTML tags which are not supposed to have a closing tag such
* as the hr tag. Only used when XML_OPTION_HTML_SPECIALS is on
* @package XML_HTMLSax3
*/
define ('XML_HTMLSAX3_ENDTAG_FORBIDDEN',2);

/**
* Passed as fourth argument to closing handler only, to signify
* special HTML tags which are not supposed to have a closing tag such
* as the hr tag but where a closing tag has been used. Only used when
* XML_OPTION_HTML_SPECIALS is on
* @package XML_HTMLSax3
*/
define ('XML_HTMLSAX3_ENDTAG_FORBIDDEN_WARNING',3);

/**
* Global array for lookups on tags which should not have closing tags
* @package XML_HTMLSax3
*/
$GLOBALS['_XML_HTMLSAX3_ENDTAG_FORBIDDEN'] = array (
    'area',
    'base',
    'basefont',
    'br',
    'col',
    'frame',
    'hr',
    'img',
    'input',
    'isindex',
    'link',
    'meta',
    'param',
);
?>