<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Predefined Constants</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="tidy.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="tidy.examples.html">Examples</a></div> <div class="up"><a href="book.tidy.html">Tidy</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="tidy.constants" class="appendix"> <h1>Predefined Constants</h1> <p class="simpara"> The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime. </p> <p class="para"> Each <em>TIDY_TAG_XXX</em> represents a HTML tag. For example, <strong><code>TIDY_TAG_A</code></strong> represents a <em>"<a href="XX">link</a>"</em> tag. </p> <p class="para"> The following constants are defined: <table id="tidy.constants.tag" class="doctable table"> <caption><strong>tidy tag constants</strong></caption> <thead> <tr> <th>constant</th> </tr> </thead> <tbody class="tbody"> <tr id="constant.tidy-tag-unknown"> <td><strong><code>TIDY_TAG_UNKNOWN</code></strong></td> </tr> <tr id="constant.tidy-tag-a"> <td><strong><code>TIDY_TAG_A</code></strong></td> </tr> <tr id="constant.tidy-tag-abbr"> <td><strong><code>TIDY_TAG_ABBR</code></strong></td> </tr> <tr id="constant.tidy-tag-acronym"> <td><strong><code>TIDY_TAG_ACRONYM</code></strong></td> </tr> <tr id="constant.tidy-tag-align"> <td><strong><code>TIDY_TAG_ALIGN</code></strong></td> </tr> <tr id="constant.tidy-tag-applet"> <td><strong><code>TIDY_TAG_APPLET</code></strong></td> </tr> <tr id="constant.tidy-tag-area"> <td><strong><code>TIDY_TAG_AREA</code></strong></td> </tr> <tr id="constant.tidy-tag-b"> <td><strong><code>TIDY_TAG_B</code></strong></td> </tr> <tr id="constant.tidy-tag-base"> <td><strong><code>TIDY_TAG_BASE</code></strong></td> </tr> <tr id="constant.tidy-tag-basefont"> <td><strong><code>TIDY_TAG_BASEFONT</code></strong></td> </tr> <tr id="constant.tidy-tag-bdo"> <td><strong><code>TIDY_TAG_BDO</code></strong></td> </tr> <tr id="constant.tidy-tag-bgsound"> <td><strong><code>TIDY_TAG_BGSOUND</code></strong></td> </tr> <tr id="constant.tidy-tag-big"> <td><strong><code>TIDY_TAG_BIG</code></strong></td> </tr> <tr id="constant.tidy-tag-blink"> <td><strong><code>TIDY_TAG_BLINK</code></strong></td> </tr> <tr id="constant.tidy-tag-blockquote"> <td><strong><code>TIDY_TAG_BLOCKQUOTE</code></strong></td> </tr> <tr id="constant.tidy-tag-body"> <td><strong><code>TIDY_TAG_BODY</code></strong></td> </tr> <tr id="constant.tidy-tag-br"> <td><strong><code>TIDY_TAG_BR</code></strong></td> </tr> <tr id="constant.tidy-tag-button"> <td><strong><code>TIDY_TAG_BUTTON</code></strong></td> </tr> <tr id="constant.tidy-tag-caption"> <td><strong><code>TIDY_TAG_CAPTION</code></strong></td> </tr> <tr id="constant.tidy-tag-center"> <td><strong><code>TIDY_TAG_CENTER</code></strong></td> </tr> <tr id="constant.tidy-tag-cite"> <td><strong><code>TIDY_TAG_CITE</code></strong></td> </tr> <tr id="constant.tidy-tag-code"> <td><strong><code>TIDY_TAG_CODE</code></strong></td> </tr> <tr id="constant.tidy-tag-col"> <td><strong><code>TIDY_TAG_COL</code></strong></td> </tr> <tr id="constant.tidy-tag-colgroup"> <td><strong><code>TIDY_TAG_COLGROUP</code></strong></td> </tr> <tr id="constant.tidy-tag-comment"> <td><strong><code>TIDY_TAG_COMMENT</code></strong></td> </tr> <tr id="constant.tidy-tag-dd"> <td><strong><code>TIDY_TAG_DD</code></strong></td> </tr> <tr id="constant.tidy-tag-del"> <td><strong><code>TIDY_TAG_DEL</code></strong></td> </tr> <tr id="constant.tidy-tag-dfn"> <td><strong><code>TIDY_TAG_DFN</code></strong></td> </tr> <tr id="constant.tidy-tag-dir"> <td><strong><code>TIDY_TAG_DIR</code></strong></td> </tr> <tr id="constant.tidy-tag-div"> <td><strong><code>TIDY_TAG_DIV</code></strong></td> </tr> <tr id="constant.tidy-tag-dl"> <td><strong><code>TIDY_TAG_DL</code></strong></td> </tr> <tr id="constant.tidy-tag-dt"> <td><strong><code>TIDY_TAG_DT</code></strong></td> </tr> <tr id="constant.tidy-tag-em"> <td><strong><code>TIDY_TAG_EM</code></strong></td> </tr> <tr id="constant.tidy-tag-embed"> <td><strong><code>TIDY_TAG_EMBED</code></strong></td> </tr> <tr id="constant.tidy-tag-fieldset"> <td><strong><code>TIDY_TAG_FIELDSET</code></strong></td> </tr> <tr id="constant.tidy-tag-font"> <td><strong><code>TIDY_TAG_FONT</code></strong></td> </tr> <tr id="constant.tidy-tag-form"> <td><strong><code>TIDY_TAG_FORM</code></strong></td> </tr> <tr id="constant.tidy-tag-frame"> <td><strong><code>TIDY_TAG_FRAME</code></strong></td> </tr> <tr id="constant.tidy-tag-frameset"> <td><strong><code>TIDY_TAG_FRAMESET</code></strong></td> </tr> <tr id="constant.tidy-tag-h1"> <td><strong><code>TIDY_TAG_H1</code></strong></td> </tr> <tr id="constant.tidy-tag-h2"> <td><strong><code>TIDY_TAG_H2</code></strong></td> </tr> <tr id="constant.tidy-tag-h3"> <td><strong><code>TIDY_TAG_H3</code></strong></td> </tr> <tr id="constant.tidy-tag-h4"> <td><strong><code>TIDY_TAG_H4</code></strong></td> </tr> <tr id="constant.tidy-tag-h5"> <td><strong><code>TIDY_TAG_H5</code></strong></td> </tr> <tr id="constant.tidy-tag-h6"> <td><strong><code>TIDY_TAG_H6</code></strong></td> </tr> <tr id="constant.tidy-tag-head"> <td><strong><code>TIDY_TAG_HEAD</code></strong></td> </tr> <tr id="constant.tidy-tag-hr"> <td><strong><code>TIDY_TAG_HR</code></strong></td> </tr> <tr id="constant.tidy-tag-html"> <td><strong><code>TIDY_TAG_HTML</code></strong></td> </tr> <tr id="constant.tidy-tag-i"> <td><strong><code>TIDY_TAG_I</code></strong></td> </tr> <tr id="constant.tidy-tag-iframe"> <td><strong><code>TIDY_TAG_IFRAME</code></strong></td> </tr> <tr id="constant.tidy-tag-ilayer"> <td><strong><code>TIDY_TAG_ILAYER</code></strong></td> </tr> <tr id="constant.tidy-tag-img"> <td><strong><code>TIDY_TAG_IMG</code></strong></td> </tr> <tr id="constant.tidy-tag-input"> <td><strong><code>TIDY_TAG_INPUT</code></strong></td> </tr> <tr id="constant.tidy-tag-ins"> <td><strong><code>TIDY_TAG_INS</code></strong></td> </tr> <tr id="constant.tidy-tag-isindex"> <td><strong><code>TIDY_TAG_ISINDEX</code></strong></td> </tr> <tr id="constant.tidy-tag-kbd"> <td><strong><code>TIDY_TAG_KBD</code></strong></td> </tr> <tr id="constant.tidy-tag-keygen"> <td><strong><code>TIDY_TAG_KEYGEN</code></strong></td> </tr> <tr id="constant.tidy-tag-label"> <td><strong><code>TIDY_TAG_LABEL</code></strong></td> </tr> <tr id="constant.tidy-tag-layer"> <td><strong><code>TIDY_TAG_LAYER</code></strong></td> </tr> <tr id="constant.tidy-tag-legend"> <td><strong><code>TIDY_TAG_LEGEND</code></strong></td> </tr> <tr id="constant.tidy-tag-li"> <td><strong><code>TIDY_TAG_LI</code></strong></td> </tr> <tr id="constant.tidy-tag-link"> <td><strong><code>TIDY_TAG_LINK</code></strong></td> </tr> <tr id="constant.tidy-tag-listing"> <td><strong><code>TIDY_TAG_LISTING</code></strong></td> </tr> <tr id="constant.tidy-tag-map"> <td><strong><code>TIDY_TAG_MAP</code></strong></td> </tr> <tr id="constant.tidy-tag-marquee"> <td><strong><code>TIDY_TAG_MARQUEE</code></strong></td> </tr> <tr id="constant.tidy-tag-menu"> <td><strong><code>TIDY_TAG_MENU</code></strong></td> </tr> <tr id="constant.tidy-tag-meta"> <td><strong><code>TIDY_TAG_META</code></strong></td> </tr> <tr id="constant.tidy-tag-multicol"> <td><strong><code>TIDY_TAG_MULTICOL</code></strong></td> </tr> <tr id="constant.tidy-tag-nobr"> <td><strong><code>TIDY_TAG_NOBR</code></strong></td> </tr> <tr id="constant.tidy-tag-noembed"> <td><strong><code>TIDY_TAG_NOEMBED</code></strong></td> </tr> <tr id="constant.tidy-tag-noframes"> <td><strong><code>TIDY_TAG_NOFRAMES</code></strong></td> </tr> <tr id="constant.tidy-tag-nolayer"> <td><strong><code>TIDY_TAG_NOLAYER</code></strong></td> </tr> <tr id="constant.tidy-tag-nosave"> <td><strong><code>TIDY_TAG_NOSAVE</code></strong></td> </tr> <tr id="constant.tidy-tag-noscript"> <td><strong><code>TIDY_TAG_NOSCRIPT</code></strong></td> </tr> <tr id="constant.tidy-tag-object"> <td><strong><code>TIDY_TAG_OBJECT</code></strong></td> </tr> <tr id="constant.tidy-tag-ol"> <td><strong><code>TIDY_TAG_OL</code></strong></td> </tr> <tr id="constant.tidy-tag-optgroup"> <td><strong><code>TIDY_TAG_OPTGROUP</code></strong></td> </tr> <tr id="constant.tidy-tag-option"> <td><strong><code>TIDY_TAG_OPTION</code></strong></td> </tr> <tr id="constant.tidy-tag-p"> <td><strong><code>TIDY_TAG_P</code></strong></td> </tr> <tr id="constant.tidy-tag-param"> <td><strong><code>TIDY_TAG_PARAM</code></strong></td> </tr> <tr id="constant.tidy-tag-plaintext"> <td><strong><code>TIDY_TAG_PLAINTEXT</code></strong></td> </tr> <tr id="constant.tidy-tag-pre"> <td><strong><code>TIDY_TAG_PRE</code></strong></td> </tr> <tr id="constant.tidy-tag-q"> <td><strong><code>TIDY_TAG_Q</code></strong></td> </tr> <tr id="constant.tidy-tag-rb"> <td><strong><code>TIDY_TAG_RB</code></strong></td> </tr> <tr id="constant.tidy-tag-rbc"> <td><strong><code>TIDY_TAG_RBC</code></strong></td> </tr> <tr id="constant.tidy-tag-rp"> <td><strong><code>TIDY_TAG_RP</code></strong></td> </tr> <tr id="constant.tidy-tag-rt"> <td><strong><code>TIDY_TAG_RT</code></strong></td> </tr> <tr id="constant.tidy-tag-rtc"> <td><strong><code>TIDY_TAG_RTC</code></strong></td> </tr> <tr id="constant.tidy-tag-ruby"> <td><strong><code>TIDY_TAG_RUBY</code></strong></td> </tr> <tr id="constant.tidy-tag-s"> <td><strong><code>TIDY_TAG_S</code></strong></td> </tr> <tr id="constant.tidy-tag-samp"> <td><strong><code>TIDY_TAG_SAMP</code></strong></td> </tr> <tr id="constant.tidy-tag-script"> <td><strong><code>TIDY_TAG_SCRIPT</code></strong></td> </tr> <tr id="constant.tidy-tag-select"> <td><strong><code>TIDY_TAG_SELECT</code></strong></td> </tr> <tr id="constant.tidy-tag-server"> <td><strong><code>TIDY_TAG_SERVER</code></strong></td> </tr> <tr id="constant.tidy-tag-servlet"> <td><strong><code>TIDY_TAG_SERVLET</code></strong></td> </tr> <tr id="constant.tidy-tag-small"> <td><strong><code>TIDY_TAG_SMALL</code></strong></td> </tr> <tr id="constant.tidy-tag-spacer"> <td><strong><code>TIDY_TAG_SPACER</code></strong></td> </tr> <tr id="constant.tidy-tag-span"> <td><strong><code>TIDY_TAG_SPAN</code></strong></td> </tr> <tr id="constant.tidy-tag-strike"> <td><strong><code>TIDY_TAG_STRIKE</code></strong></td> </tr> <tr id="constant.tidy-tag-strong"> <td><strong><code>TIDY_TAG_STRONG</code></strong></td> </tr> <tr id="constant.tidy-tag-style"> <td><strong><code>TIDY_TAG_STYLE</code></strong></td> </tr> <tr id="constant.tidy-tag-sub"> <td><strong><code>TIDY_TAG_SUB</code></strong></td> </tr> <tr id="constant.tidy-tag-sup"> <td><strong><code>TIDY_TAG_SUP</code></strong></td> </tr> <tr id="constant.tidy-tag-table"> <td><strong><code>TIDY_TAG_TABLE</code></strong></td> </tr> <tr id="constant.tidy-tag-tbody"> <td><strong><code>TIDY_TAG_TBODY</code></strong></td> </tr> <tr id="constant.tidy-tag-td"> <td><strong><code>TIDY_TAG_TD</code></strong></td> </tr> <tr id="constant.tidy-tag-textarea"> <td><strong><code>TIDY_TAG_TEXTAREA</code></strong></td> </tr> <tr id="constant.tidy-tag-tfoot"> <td><strong><code>TIDY_TAG_TFOOT</code></strong></td> </tr> <tr id="constant.tidy-tag-th"> <td><strong><code>TIDY_TAG_TH</code></strong></td> </tr> <tr id="constant.tidy-tag-thead"> <td><strong><code>TIDY_TAG_THEAD</code></strong></td> </tr> <tr id="constant.tidy-tag-title"> <td><strong><code>TIDY_TAG_TITLE</code></strong></td> </tr> <tr id="constant.tidy-tag-tr"> <td><strong><code>TIDY_TAG_TR</code></strong></td> </tr> <tr id="constant.tidy-tag-tt"> <td><strong><code>TIDY_TAG_TT</code></strong></td> </tr> <tr id="constant.tidy-tag-u"> <td><strong><code>TIDY_TAG_U</code></strong></td> </tr> <tr id="constant.tidy-tag-ul"> <td><strong><code>TIDY_TAG_UL</code></strong></td> </tr> <tr id="constant.tidy-tag-var"> <td><strong><code>TIDY_TAG_VAR</code></strong></td> </tr> <tr id="constant.tidy-tag-wbr"> <td><strong><code>TIDY_TAG_WBR</code></strong></td> </tr> <tr id="constant.tidy-tag-xmp"> <td><strong><code>TIDY_TAG_XMP</code></strong></td> </tr> </tbody> </table> </p> <p class="para"> <table id="tidy.constants.nodetype" class="doctable table"> <caption><strong>tidy nodetype constants</strong></caption> <thead> <tr> <th>constant</th> <th>description</th> </tr> </thead> <tbody class="tbody"> <tr id="constant.tidy-nodetype-root"> <td><strong><code>TIDY_NODETYPE_ROOT</code></strong></td> <td>root node</td> </tr> <tr id="constant.tidy-nodetype-doctype"> <td><strong><code>TIDY_NODETYPE_DOCTYPE</code></strong></td> <td>doctype</td> </tr> <tr id="constant.tidy-nodetype-comment"> <td><strong><code>TIDY_NODETYPE_COMMENT</code></strong></td> <td>HTML comment</td> </tr> <tr id="constant.tidy-nodetype-procins"> <td><strong><code>TIDY_NODETYPE_PROCINS</code></strong></td> <td>Processing Instruction</td> </tr> <tr id="constant.tidy-nodetype-text"> <td><strong><code>TIDY_NODETYPE_TEXT</code></strong></td> <td>Text</td> </tr> <tr id="constant.tidy-nodetype-start"> <td><strong><code>TIDY_NODETYPE_START</code></strong></td> <td>start tag</td> </tr> <tr id="constant.tidy-nodetype-end"> <td><strong><code>TIDY_NODETYPE_END</code></strong></td> <td>end tag</td> </tr> <tr id="constant.tidy-nodetype-startend"> <td><strong><code>TIDY_NODETYPE_STARTEND</code></strong></td> <td>empty tag</td> </tr> <tr id="constant.tidy-nodetype-cdata"> <td><strong><code>TIDY_NODETYPE_CDATA</code></strong></td> <td>CDATA</td> </tr> <tr id="constant.tidy-nodetype-section"> <td><strong><code>TIDY_NODETYPE_SECTION</code></strong></td> <td>XML section</td> </tr> <tr id="constant.tidy-nodetype-asp"> <td><strong><code>TIDY_NODETYPE_ASP</code></strong></td> <td>ASP code</td> </tr> <tr id="constant.tidy-nodetype-jste"> <td><strong><code>TIDY_NODETYPE_JSTE</code></strong></td> <td>JSTE code</td> </tr> <tr id="constant.tidy-nodetype-php"> <td><strong><code>TIDY_NODETYPE_PHP</code></strong></td> <td>PHP code</td> </tr> <tr id="constant.tidy-nodetype-xmldecl"> <td><strong><code>TIDY_NODETYPE_XMLDECL</code></strong></td> <td>XML declaration</td> </tr> </tbody> </table> </p> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="tidy.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="tidy.examples.html">Examples</a></div> <div class="up"><a href="book.tidy.html">Tidy</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>