Uses of Class
org.w3c.tidy.Node
Packages that use Node
-
Uses of Node in org.w3c.tidy
Fields in org.w3c.tidy declared as NodeModifier and TypeFieldDescriptionprotected Node
DOMNodeImpl.adaptee
Wrapped tidy node.protected Node
AttVal.asp
Asp node.protected Node
Node.content
Contained node.protected Node
Lexer.inode
Inline stack for compatibility with Mosaic.protected Node
Node.last
last node.protected Node
Node.next
next node.protected Node
Anchor.node
linked node.protected Node
Node.parent
parent node.protected Node
AttVal.php
Php node.protected Node
Node.prev
pevious node.protected Node
Lexer.root
Root node is saved here.protected Node
Lexer.token
current node.Methods in org.w3c.tidy that return NodeModifier and TypeMethodDescriptionClones a node and add it to node list.protected Node
Node.cloneNode
(boolean deep) Clone this node.static Node
Node.discardElement
(Node element) Remove node from markup tree and discard it.protected static Node
Escapes the given tag.Find the body node.Node.findDocType()
Find the doctype element.Find the head tag.Find the "html" element.AttVal.getAsp()
Getter forasp
.Create a text node for the contents of a CDATA element like style or script which ends with </foo> for some foo.AttVal.getPhp()
Getter forphp
.Lexer.getToken
(short mode) Gets a token.Lexer.inferredTag
(String name) Generates and inserts a new node.Lexer.insertedToken()
Lexer.newLineNode()
Adds a new line node.Lexer.newNode()
Creates a new node and add it to nodelist.Lexer.newNode
(short type, byte[] textarray, int start, int end) Creates a new node and add it to nodelist.Creates a new node and add it to nodelist.Tidy.parse
(InputStream in, OutputStream out) Reads from the given input and returns the root Node.Tidy.parse
(InputStream in, Writer out) Reads from the given input and returns the root Node.Tidy.parse
(Reader in, OutputStream out) Reads from the given input and returns the root Node.Reads from the given input and returns the root Node.Lexer.parseAsp()
parser for ASP within start tags Some people use ASP for to customize attributes Tidy isn't really well suited to dealing with ASP This is a workaround for attributes, but won't deal with the case where the ASP is used to tailor the attribute value.static Node
ParserImpl.parseDocument
(Lexer lexer) HTML is the top level element.Lexer.parsePhp()
PHP is like ASP but is based upon XML processing instructions, e.g.static Node
ParserImpl.parseXMLDocument
(Lexer lexer) Clean.pruneSection
(Lexer lexer, Node node) node is<![if ...]>
prune up to<![endif]>
.Word2000 uses span excessively, so we strip span out.Methods in org.w3c.tidy with parameters of type NodeModifier and TypeMethodDescriptionboolean
Lexer.addGenerator
(Node root) Add meta element for Tidy.void
PPrint.addTransitionEffect
(Lexer lexer, Node root, double duration) Add meta element for page transition effect, this works on IE but not NS.void
Prints error messages for attributes.void
Replace implicit blockquote by div with an indent taking care to reduce nested blockquotes to a single div with the indent set to match the nesting depth.boolean
Can the given element be removed?void
Check the value of an attribute.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Checks attributes in given Node.void
void
void
void
void
void
void
void
void
void
void
void
void
void
AttVal.checkAttribute
(Lexer lexer, Node node) Check attribute name/value and report errors.boolean
Lexer.checkDocTypeKeyWords
(Node doctype) Check system keywords (keywords should be uppercase).void
Clean an html tree.void
Clean.cleanWord2000
(Lexer lexer, Node node) This is a major clean up to strip out all the extra stuff you get when you save as web page from Word 2000.Clones a node and add it to node list.static void
Node.coerceNode
(Lexer lexer, Node node, Dict tag) Coerce a node.int
PPrint.countSlides
(Node node) Split parse tree by h2 elements and output to separate files.void
PPrint.createSlides
(Lexer lexer, Node root) Creates slides from h2.static Node
Node.discardElement
(Node element) Remove node from markup tree and discard it.void
Clean.dropSections
(Lexer lexer, Node node) Drop if/endif sections inserted by word2000.void
Replace i by em and b by strong.void
Prints errors.protected static Node
Escapes the given tag.short
Lexer.findGivenVersion
(Node doctype) Examine DOCTYPE to identify version.TagTable.findParser
(Node node) Finds a parser fo the given node.boolean
Finds a tag by name.boolean
Lexer.fixDocType
(Node root) Fixup doctype if missing.static void
Node.fixEmptyRow
(Lexer lexer, Node row) If a table row is empty then insert an empty cell.This practice is consistent with browser behavior and avoids potential problems with row spanning cells.void
Lexer.fixHTMLNameSpace
(Node root, String profile) Fix xhtml namespace.void
duplicate name attribute as an id and check if id and name match.boolean
Lexer.fixXmlDecl
(Node root) Ensure XML document starts with<?XML version="1.0"?>
.void
Free node's attributes.Create a text node for the contents of a CDATA element like style or script which ends with </foo> for some foo.int
This has the effect of inserting "missing" inline elements around the contents of blocklevel elements such as P, TD, TH, DIV, PRE etc.static void
Node.insertDocType
(Lexer lexer, Node element, Node doctype) The doctype has been found after other tags, and needs moving to before the html element.static boolean
Node.insertMisc
(Node element, Node node) Insert a node at the end.void
Node.insertNodeAfterElement
(Node node) Insert node into markup tree after element.static void
Node.insertNodeAsParent
(Node element, Node node) Insert node into markup tree in pace of element which is moved to become the child of the node.void
Node.insertNodeAtEnd
(Node node) Insert node into markup tree.void
Node.insertNodeAtStart
(Node node) Insert a node into markup tree.static void
Node.insertNodeBeforeElement
(Node element, Node node) Insert node into markup tree before element.boolean
Is the node in the stack?boolean
Clean.isWord2000
(Node root) Check if the current document is a converted Word document.void
Some people use dir or ul without an li to indent the content.static void
Node.moveBeforeTable
(Node row, Node node, TagTable tt) Unexpected content in table row is moved to just before the table in accordance with Netscape and IE.protected static void
ParserImpl.moveToHead
(Lexer lexer, Node element, Node node) Move node to the head, where element is used as starting point in hunt for head.void
Clean.nestedEmphasis
(Node node) simplifies ...void
Parse the given node.void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
Lexer.parseAttribute
(boolean[] isempty, Node[] asp, Node[] php) consumes the '>' terminating start tags.protected static void
static void
ParserImpl.parseXMLElement
(Lexer lexer, Node element, short mode) XML documents.void
Pop a copy of an inline node from the stack.protected boolean
Lexer.preContent
(Node node) Is content acceptable for pre elements?protected void
DOMNodeListByTagNameImpl.preTraverse
(Node node) Traverse the node list.void
void
PPrint.printXMLTree
(Out fout, short mode, int indent, Lexer lexer, Node node) Clean.pruneSection
(Lexer lexer, Node node) node is<![if ...]>
prune up to<![endif]>
.void
Clean.purgeWord2000Attributes
(Node node) Remove word2000 attributes from node.void
Lexer.pushInline
(Node node) Push a copy of an inline node onto stack but don't push if implicit or OBJECT or APPLET (implicit tags are ones generated from the istack) One issue arises with pushing inlines when the tag is already pushed.void
Report.reportVersion
(PrintWriter errout, Lexer lexer, String filename, Node doctype) Prints information for html version in input file.void
Setter forasp
.void
Setter forphp
.boolean
Lexer.setXHTMLDocType
(Node root) Adds a new xhtml doctype to the document.Word2000 uses span excessively, so we strip span out.static void
Node.trimEmptyElement
(Lexer lexer, Node element) Trim an empty element.static void
Node.trimInitialSpace
(Lexer lexer, Node element, Node text) This maps<p> hello <em> world </em>
to<p> hello <em> world </em>
.static void
Node.trimSpaces
(Lexer lexer, Node element) Move initial and trailing space out.static void
Node.trimTrailingSpace
(Lexer lexer, Node element, Node last) This maps hello world to hello world .void
Prints warnings.static boolean
ParserImpl.XMLPreserveWhiteSpace
(Node element, TagTable tt) Indicates whether or not whitespace should be preserved for this element.Constructors in org.w3c.tidy with parameters of type NodeModifierConstructorDescriptionInstantiates a new AttVal.protected
DOMCDATASectionImpl
(Node adaptee) Instantiates a new DOMCDATASectionImpl which wraps the given Node.protected
DOMCharacterDataImpl
(Node adaptee) Instantiates a new DOMCharacterDataImpl which wraps the given Node.protected
DOMCommentImpl
(Node adaptee) Instantiates a new DOMCommentImpl which wraps the given Node.protected
DOMDocumentImpl
(Node adaptee) Instantiates a new Dom document with a default tag table.protected
DOMDocumentTypeImpl
(Node adaptee) Instantiates a new DOM document type.protected
DOMElementImpl
(Node adaptee) Instantiates a new DOM element.protected
DOMNodeImpl
(Node adaptee) Intantiates a new DOM node.protected
DOMNodeListByTagNameImpl
(Node first, String tagName) Instantiates a new DOMNodeListByTagName.protected
DOMNodeListImpl
(Node parent) Instantiates a new DOM node list.protected
DOMProcessingInstructionImpl
(Node adaptee) Instantiates a new DOM processing instruction.protected
DOMTextImpl
(Node adaptee) Instantiates a new DOM text node.