org.w3c.tidy
Class ParserImpl
java.lang.Object
org.w3c.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
- Author:
- Dave Raggett , Andy Quick (translation to Java)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserImpl
public ParserImpl()
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()
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.
- Parameters:
element
- The Node
to test to see if whitespace should be
preserved.tt
- The TagTable
to test for the getNodePre()
function. This may be null
, in which case this test
is bypassed.
- Returns:
true
or false
, as explained above.
parseXMLElement
public static void parseXMLElement(Lexer lexer,
Node element,
short mode)
parseXMLDocument
public static Node parseXMLDocument(Lexer lexer)
isJavaScript
public static boolean isJavaScript(Node node)