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 NodeDOMNodeImpl.adapteeWrapped tidy node.protected NodeAttVal.aspAsp node.protected NodeNode.contentContained node.protected NodeLexer.inodeInline stack for compatibility with Mosaic.protected NodeNode.lastlast node.protected NodeNode.nextnext node.protected NodeAnchor.nodelinked node.protected NodeNode.parentparent node.protected NodeAttVal.phpPhp node.protected NodeNode.prevpevious node.protected NodeLexer.rootRoot node is saved here.protected NodeLexer.tokencurrent node.Methods in org.w3c.tidy that return NodeModifier and TypeMethodDescriptionClones a node and add it to node list.protected NodeNode.cloneNode(boolean deep) Clone this node.static NodeNode.discardElement(Node element) Remove node from markup tree and discard it.protected static NodeEscapes 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 NodeParserImpl.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 NodeParserImpl.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 TypeMethodDescriptionbooleanLexer.addGenerator(Node root) Add meta element for Tidy.voidPPrint.addTransitionEffect(Lexer lexer, Node root, double duration) Add meta element for page transition effect, this works on IE but not NS.voidPrints error messages for attributes.voidReplace 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.booleanCan the given element be removed?voidCheck the value of an attribute.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidChecks attributes in given Node.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidAttVal.checkAttribute(Lexer lexer, Node node) Check attribute name/value and report errors.booleanLexer.checkDocTypeKeyWords(Node doctype) Check system keywords (keywords should be uppercase).voidClean an html tree.voidClean.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 voidNode.coerceNode(Lexer lexer, Node node, Dict tag) Coerce a node.intPPrint.countSlides(Node node) Split parse tree by h2 elements and output to separate files.voidPPrint.createSlides(Lexer lexer, Node root) Creates slides from h2.static NodeNode.discardElement(Node element) Remove node from markup tree and discard it.voidClean.dropSections(Lexer lexer, Node node) Drop if/endif sections inserted by word2000.voidReplace i by em and b by strong.voidPrints errors.protected static NodeEscapes the given tag.shortLexer.findGivenVersion(Node doctype) Examine DOCTYPE to identify version.TagTable.findParser(Node node) Finds a parser fo the given node.booleanFinds a tag by name.booleanLexer.fixDocType(Node root) Fixup doctype if missing.static voidNode.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.voidLexer.fixHTMLNameSpace(Node root, String profile) Fix xhtml namespace.voidduplicate name attribute as an id and check if id and name match.booleanLexer.fixXmlDecl(Node root) Ensure XML document starts with<?XML version="1.0"?>.voidFree 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.intThis has the effect of inserting "missing" inline elements around the contents of blocklevel elements such as P, TD, TH, DIV, PRE etc.static voidNode.insertDocType(Lexer lexer, Node element, Node doctype) The doctype has been found after other tags, and needs moving to before the html element.static booleanNode.insertMisc(Node element, Node node) Insert a node at the end.voidNode.insertNodeAfterElement(Node node) Insert node into markup tree after element.static voidNode.insertNodeAsParent(Node element, Node node) Insert node into markup tree in pace of element which is moved to become the child of the node.voidNode.insertNodeAtEnd(Node node) Insert node into markup tree.voidNode.insertNodeAtStart(Node node) Insert a node into markup tree.static voidNode.insertNodeBeforeElement(Node element, Node node) Insert node into markup tree before element.booleanIs the node in the stack?booleanClean.isWord2000(Node root) Check if the current document is a converted Word document.voidSome people use dir or ul without an li to indent the content.static voidNode.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 voidParserImpl.moveToHead(Lexer lexer, Node element, Node node) Move node to the head, where element is used as starting point in hunt for head.voidClean.nestedEmphasis(Node node) simplifies ...voidParse the given node.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidLexer.parseAttribute(boolean[] isempty, Node[] asp, Node[] php) consumes the '>' terminating start tags.protected static voidstatic voidParserImpl.parseXMLElement(Lexer lexer, Node element, short mode) XML documents.voidPop a copy of an inline node from the stack.protected booleanLexer.preContent(Node node) Is content acceptable for pre elements?protected voidDOMNodeListByTagNameImpl.preTraverse(Node node) Traverse the node list.voidvoidPPrint.printXMLTree(Out fout, short mode, int indent, Lexer lexer, Node node) Clean.pruneSection(Lexer lexer, Node node) node is<![if ...]>prune up to<![endif]>.voidClean.purgeWord2000Attributes(Node node) Remove word2000 attributes from node.voidLexer.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.voidReport.reportVersion(PrintWriter errout, Lexer lexer, String filename, Node doctype) Prints information for html version in input file.voidSetter forasp.voidSetter forphp.booleanLexer.setXHTMLDocType(Node root) Adds a new xhtml doctype to the document.Word2000 uses span excessively, so we strip span out.static voidNode.trimEmptyElement(Lexer lexer, Node element) Trim an empty element.static voidNode.trimInitialSpace(Lexer lexer, Node element, Node text) This maps<p> hello <em> world </em>to<p> hello <em> world </em>.static voidNode.trimSpaces(Lexer lexer, Node element) Move initial and trailing space out.static voidNode.trimTrailingSpace(Lexer lexer, Node element, Node last) This maps hello world to hello world .voidPrints warnings.static booleanParserImpl.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.protectedDOMCDATASectionImpl(Node adaptee) Instantiates a new DOMCDATASectionImpl which wraps the given Node.protectedDOMCharacterDataImpl(Node adaptee) Instantiates a new DOMCharacterDataImpl which wraps the given Node.protectedDOMCommentImpl(Node adaptee) Instantiates a new DOMCommentImpl which wraps the given Node.protectedDOMDocumentImpl(Node adaptee) Instantiates a new Dom document with a default tag table.protectedDOMDocumentTypeImpl(Node adaptee) Instantiates a new DOM document type.protectedDOMElementImpl(Node adaptee) Instantiates a new DOM element.protectedDOMNodeImpl(Node adaptee) Intantiates a new DOM node.protectedDOMNodeListByTagNameImpl(Node first, String tagName) Instantiates a new DOMNodeListByTagName.protectedDOMNodeListImpl(Node parent) Instantiates a new DOM node list.protectedDOMProcessingInstructionImpl(Node adaptee) Instantiates a new DOM processing instruction.protectedDOMTextImpl(Node adaptee) Instantiates a new DOM text node.