| java.lang.Object org.w3c.tidy.ParserImpl
ParserImpl | final public class ParserImpl (Code) | | HTML Parser implementation.
author: Dave Raggett dsr@w3.org author: Andy Quick ac.quick@sympatico.ca (translation to Java) author: Fabrizio Giustina version: $Revision: 1.53 $ ($Author: fgiust $) |
Inner Class :public static class ParseHTML implements Parser | |
Inner Class :public static class ParseHead implements Parser | |
Inner Class :public static class ParseTitle implements Parser | |
Inner Class :public static class ParseScript implements Parser | |
Inner Class :public static class ParseBody implements Parser | |
Inner Class :public static class ParseFrameSet implements Parser | |
Inner Class :public static class ParseInline implements Parser | |
Inner Class :public static class ParseList implements Parser | |
Inner Class :public static class ParseEmpty implements Parser | |
Inner Class :public static class ParseDefList implements Parser | |
Inner Class :public static class ParsePre implements Parser | |
Inner Class :public static class ParseBlock implements Parser | |
Inner Class :public static class ParseTableTag implements Parser | |
Inner Class :public static class ParseColGroup implements Parser | |
Inner Class :public static class ParseRowGroup implements Parser | |
Inner Class :public static class ParseRow implements Parser | |
Inner Class :public static class ParseNoFrames implements Parser | |
Inner Class :public static class ParseSelect implements Parser | |
Inner Class :public static class ParseText implements Parser | |
Inner Class :public static class ParseOptGroup implements Parser | |
BLOCK | final public static Parser BLOCK(Code) | | parser for block elements.
|
COLGROUP | final public static Parser COLGROUP(Code) | | parser for colgroup.
|
DEFLIST | final public static Parser DEFLIST(Code) | | parser for definition lists.
|
EMPTY | final public static Parser EMPTY(Code) | | parser for empty elements.
|
FRAMESET | final public static Parser FRAMESET(Code) | | parser for frameset.
|
INLINE | final public static Parser INLINE(Code) | | parser for inline.
|
NOFRAMES | final public static Parser NOFRAMES(Code) | | parser for noframes.
|
OPTGROUP | final public static Parser OPTGROUP(Code) | | parser for optgroup.
|
ROWGROUP | final public static Parser ROWGROUP(Code) | | parser for rowgroup.
|
SCRIPT | final public static Parser SCRIPT(Code) | | parser for script.
|
SELECT | final public static Parser SELECT(Code) | | parser for select.
|
TABLETAG | final public static Parser TABLETAG(Code) | | parser for table.
|
TITLE | final public static Parser TITLE(Code) | | parser for title.
|
XMLPreserveWhiteSpace | public static boolean XMLPreserveWhiteSpace(Node element, TagTable tt)(Code) | | 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.
Parameters: element - The Node to test to see if whitespace should be preserved. Parameters: tt - The TagTable to test for the getNodePre() function. This may benull , in which case this test is bypassed. true or false , as explained above. |
badForm | static void badForm(Lexer lexer)(Code) | | errors in positioning of form start or end tags generally require human intervention to fix.
|
moveNodeToBody | static void moveNodeToBody(Lexer lexer, Node node)(Code) | | moves given node to end of body element.
Parameters: lexer - Lexer Parameters: node - Node to insert |
moveToHead | protected static void moveToHead(Lexer lexer, Node element, Node node)(Code) | | Move node to the head, where element is used as starting point in hunt for head. Normally called during parsing.
Parameters: lexer - Parameters: element - Parameters: node - |
parseDocument | public static Node parseDocument(Lexer lexer)(Code) | | HTML is the top level element.
|
parseTag | protected static void parseTag(Lexer lexer, Node node, short mode)(Code) | | Parameters: lexer - Parameters: node - Parameters: mode - |
parseXMLElement | public static void parseXMLElement(Lexer lexer, Node element, short mode)(Code) | | XML documents.
|
|
|