java.lang.Object
com.port80.html.tidy.ParserImpl
- public class ParserImpl
- extends java.lang.Object
HTML Parser implementation
(c) 1998-2000 (W3C) MIT, INRIA, Keio University
See Tidy.java for the copyright notice.
Derived from
HTML Tidy Release 4 Aug 2000
- Version:
- 1.0, 1999/05/22, 1.0.1, 1999/05/29, 1.1, 1999/06/18 Java Bean, 1.2, 1999/07/10 Tidy Release 7 Jul 1999, 1.3, 1999/07/30 Tidy Release 26 Jul 1999, 1.4, 1999/09/04 DOM support, 1.5, 1999/10/23 Tidy Release 27 Sep 1999, 1.6, 1999/11/01 Tidy Release 22 Oct 1999, 1.7, 1999/12/06 Tidy Release 30 Nov 1999, 1.8, 2000/01/22 Tidy Release 13 Jan 2000, 1.9, 2000/06/03 Tidy Release 30 Apr 2000, 1.10, 2000/07/22 Tidy Release 8 Jul 2000, 1.11, 2000/08/16 Tidy Release 4 Aug 2000
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_parseHTML
private static Parser _parseHTML
_parseHead
private static Parser _parseHead
_parseTitle
private static Parser _parseTitle
_parseScript
private static Parser _parseScript
_parseBody
private static Parser _parseBody
_parseFrameSet
private static Parser _parseFrameSet
_parseInline
private static Parser _parseInline
_parseList
private static Parser _parseList
_parseDefList
private static Parser _parseDefList
_parsePre
private static Parser _parsePre
_parseBlock
private static Parser _parseBlock
_parseTableTag
private static Parser _parseTableTag
_parseColGroup
private static Parser _parseColGroup
_parseRowGroup
private static Parser _parseRowGroup
_parseRow
private static Parser _parseRow
_parseNoFrames
private static Parser _parseNoFrames
_parseSelect
private static Parser _parseSelect
_parseText
private static Parser _parseText
_parseOptGroup
private static Parser _parseOptGroup
ParserImpl
public ParserImpl()
parseDocument
public static Node parseDocument(Lexer lexer)
XMLPreserveWhiteSpace
public static boolean XMLPreserveWhiteSpace(Node element,
TagTable tt)
- Indicates whether or not whitespace should be preserved for this element.
If an
xml:space attribute is found, then if the attribute value is
preserve, returns true. For any other value, returns
false. If an xml:space attribute was not
found, then the following element names result in a return value of true:
pre, script, style, and xsl:text. Finally, if a
TagTable was passed in and the element appears as the "pre" element
in the TagTable, then true will be returned.
Otherwise, false is returned.
parseXMLElement
public static void parseXMLElement(Lexer lexer,
Node element,
short mode)
parseXMLDocument
public static Node parseXMLDocument(Lexer lexer)
getParseHTML
public static Parser getParseHTML()
getParseHead
public static Parser getParseHead()
getParseTitle
public static Parser getParseTitle()
getParseScript
public static Parser getParseScript()
getParseBody
public static Parser getParseBody()
getParseFrameSet
public static Parser getParseFrameSet()
getParseInline
public static Parser getParseInline()
getParseList
public static Parser getParseList()
getParseDefList
public static Parser getParseDefList()
getParsePre
public static Parser getParsePre()
getParseBlock
public static Parser getParseBlock()
getParseTableTag
public static Parser getParseTableTag()
getParseColGroup
public static Parser getParseColGroup()
getParseRowGroup
public static Parser getParseRowGroup()
getParseRow
public static Parser getParseRow()
getParseNoFrames
public static Parser getParseNoFrames()
getParseSelect
public static Parser getParseSelect()
getParseText
public static Parser getParseText()
getParseOptGroup
public static Parser getParseOptGroup()
parseTag
static void parseTag(Lexer lexer,
Node node,
short mode)
moveToHead
static void moveToHead(Lexer lexer,
Node element,
Node node)
- Move 'node' to the 'head' section.