Package | Description |
---|---|
nu.validator.htmlparser.common |
This package provides common interfaces and enumerations.
|
nu.validator.htmlparser.dom |
This package provides an HTML5 parser that exposes the document using the DOM API.
|
nu.validator.htmlparser.impl |
This package contains the bulk of parser internals.
|
nu.validator.htmlparser.sax |
This package provides an HTML5 parser that exposes the document through the SAX API.
|
nu.validator.htmlparser.xom |
This package provides an HTML5 parser that exposes the document through the XOM API.
|
Modifier and Type | Method and Description |
---|---|
void |
TokenHandler.startTag(ElementName eltName,
HtmlAttributes attributes,
boolean selfClosing)
Receive a start tag token.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DOMTreeBuilder.addAttributesToElement(org.w3c.dom.Element element,
HtmlAttributes attributes) |
protected org.w3c.dom.Element |
DOMTreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected org.w3c.dom.Element |
DOMTreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes,
org.w3c.dom.Element form) |
protected org.w3c.dom.Element |
DOMTreeBuilder.createHtmlElementSetAsRoot(HtmlAttributes attributes) |
Modifier and Type | Field and Description |
---|---|
(package private) HtmlAttributes |
StackNode.attributes |
private HtmlAttributes |
Tokenizer.attributes
The attribute holder.
|
static HtmlAttributes |
HtmlAttributes.EMPTY_ATTRIBUTES |
Modifier and Type | Method and Description |
---|---|
HtmlAttributes |
HtmlAttributes.cloneAttributes(Interner interner) |
(package private) HtmlAttributes |
Tokenizer.emptyAttributes() |
Modifier and Type | Method and Description |
---|---|
private boolean |
TreeBuilder.addAttributesToBody(HtmlAttributes attributes)
Attempt to add attribute to the body element.
|
protected abstract void |
TreeBuilder.addAttributesToElement(T element,
HtmlAttributes attributes) |
private void |
TreeBuilder.addAttributesToHtml(HtmlAttributes attributes) |
private boolean |
TreeBuilder.annotationXmlEncodingPermitsHtml(HtmlAttributes attributes) |
private void |
TreeBuilder.appendHtmlElementToDocumentAndPush(HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushBodyElement(HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushElement(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushElementMayFoster(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushElementMayFoster(ElementName elementName,
HtmlAttributes attributes,
T form) |
private void |
TreeBuilder.appendToCurrentNodeAndPushElementMayFosterMathML(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushElementMayFosterSVG(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushFormattingElementMayFoster(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushFormElementMayFoster(HtmlAttributes attributes) |
private void |
TreeBuilder.appendToCurrentNodeAndPushHeadElement(HtmlAttributes attributes) |
private void |
TreeBuilder.appendVoidElementToCurrent(java.lang.String name,
HtmlAttributes attributes,
T form) |
private void |
TreeBuilder.appendVoidElementToCurrentMayFoster(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendVoidElementToCurrentMayFoster(java.lang.String name,
HtmlAttributes attributes,
T form) |
private void |
TreeBuilder.appendVoidElementToCurrentMayFosterMathML(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendVoidElementToCurrentMayFosterSVG(ElementName elementName,
HtmlAttributes attributes) |
private void |
TreeBuilder.appendVoidFormToCurrent(HtmlAttributes attributes) |
private void |
TreeBuilder.checkAttributes(HtmlAttributes attributes,
java.lang.String ns) |
private void |
TreeBuilder.checkMetaCharset(HtmlAttributes attributes) |
protected abstract T |
TreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected T |
TreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes,
T form) |
protected abstract T |
TreeBuilder.createHtmlElementSetAsRoot(HtmlAttributes attributes) |
boolean |
HtmlAttributes.equalsAnother(HtmlAttributes other) |
protected void |
ErrorReportingTokenizer.maybeErrAttributesOnEndTag(HtmlAttributes attrs) |
protected void |
Tokenizer.maybeErrAttributesOnEndTag(HtmlAttributes attrs) |
private void |
TreeBuilder.maybeForgetEarlierDuplicateFormattingElement(java.lang.String name,
HtmlAttributes attributes) |
void |
HtmlAttributes.merge(HtmlAttributes attributes) |
void |
TreeBuilder.startTag(ElementName elementName,
HtmlAttributes attributes,
boolean selfClosing) |
Constructor and Description |
---|
StackNode(ElementName elementName,
T node,
HtmlAttributes attributes,
TaintableLocatorImpl locator)
Constructor for HTML formatting elements.
|
StackNode(int flags,
java.lang.String ns,
java.lang.String name,
T node,
java.lang.String popName,
HtmlAttributes attributes,
TaintableLocatorImpl locator)
Constructor for copying.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SAXStreamer.addAttributesToElement(org.xml.sax.Attributes element,
HtmlAttributes attributes) |
protected void |
SAXTreeBuilder.addAttributesToElement(Element element,
HtmlAttributes attributes) |
protected org.xml.sax.Attributes |
SAXStreamer.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected Element |
SAXTreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected org.xml.sax.Attributes |
SAXStreamer.createHtmlElementSetAsRoot(HtmlAttributes attributes) |
protected Element |
SAXTreeBuilder.createHtmlElementSetAsRoot(HtmlAttributes attributes) |
Modifier and Type | Method and Description |
---|---|
protected void |
XOMTreeBuilder.addAttributesToElement(nu.xom.Element element,
HtmlAttributes attributes) |
protected nu.xom.Element |
XOMTreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes) |
protected nu.xom.Element |
XOMTreeBuilder.createElement(java.lang.String ns,
java.lang.String name,
HtmlAttributes attributes,
nu.xom.Element form) |
protected nu.xom.Element |
XOMTreeBuilder.createHtmlElementSetAsRoot(HtmlAttributes attributes) |