| java.lang.Object au.id.jericho.lib.html.HTMLElements
Method Summary | |
public static Set | getBlockLevelElementNames() Returns a set containing the
of all the
block-level elements.
The element names contained in this set are:
HTMLElements.ADDRESS ADDRESS ,
HTMLElements.BLOCKQUOTE BLOCKQUOTE ,
HTMLElements.CENTER CENTER ,
HTMLElements.DIR DIR ,
HTMLElements.DIV DIV ,
HTMLElements.DL DL ,
HTMLElements.FIELDSET FIELDSET ,
HTMLElements.FORM FORM ,
HTMLElements.H1 H1 ,
HTMLElements.H2 H2 ,
HTMLElements.H3 H3 ,
HTMLElements.H4 H4 ,
HTMLElements.H5 H5 ,
HTMLElements.H6 H6 ,
HTMLElements.HR HR ,
HTMLElements.ISINDEX ISINDEX ,
HTMLElements.MENU MENU ,
HTMLElements.NOFRAMES NOFRAMES ,
HTMLElements.NOSCRIPT NOSCRIPT ,
HTMLElements.OL OL ,
HTMLElements.P P ,
HTMLElements.PRE PRE ,
HTMLElements.TABLE TABLE ,
HTMLElements.UL UL
This set is defined in the HTML 4.01 Transitional DTD,
but more detailed information can be found in the
HTML 4.01 specification section 7.5.3 - Block-level and inline elements
and the CSS2 specification section 9.2.1 - Block-level elements and block boxes. | final static String | getConstantElementName(String elementName) | public static Set | getDeprecatedElementNames() Returns a set containing the
of all
deprecated elements in HTML 4.01. | final public static List | getElementNames() Returns a list containing all of the
. | public static Set | getEndTagForbiddenElementNames() Returns a set containing the
of all of the HTML elements
for which the
is forbidden. | public static Set | getEndTagOptionalElementNames() Returns a set containing the
of all of the HTML elements
for which the
is optional. | public static Set | getEndTagRequiredElementNames() Returns a set containing the
of all of the HTML elements
for which the
is required. | public static Set | getInlineLevelElementNames() Returns a set containing the
of all the
inline-level elements.
The element names contained in this set are:
HTMLElements.A A ,
HTMLElements.ABBR ABBR ,
HTMLElements.ACRONYM ACRONYM ,
HTMLElements.APPLET APPLET ,
HTMLElements.B B ,
HTMLElements.BASEFONT BASEFONT ,
HTMLElements.BDO BDO ,
HTMLElements.BIG BIG ,
HTMLElements.BR BR ,
HTMLElements.BUTTON BUTTON ,
HTMLElements.CITE CITE ,
HTMLElements.CODE CODE ,
HTMLElements.DEL DEL ,
HTMLElements.DFN DFN ,
HTMLElements.EM EM ,
HTMLElements.FONT FONT ,
HTMLElements.I I ,
HTMLElements.IFRAME IFRAME ,
HTMLElements.IMG IMG ,
HTMLElements.INPUT INPUT ,
HTMLElements.INS INS ,
HTMLElements.KBD KBD ,
HTMLElements.LABEL LABEL ,
HTMLElements.MAP MAP ,
HTMLElements.OBJECT OBJECT ,
HTMLElements.Q Q ,
HTMLElements.S S ,
HTMLElements.SAMP SAMP ,
HTMLElements.SCRIPT SCRIPT ,
HTMLElements.SELECT SELECT ,
HTMLElements.SMALL SMALL ,
HTMLElements.SPAN SPAN ,
HTMLElements.STRIKE STRIKE ,
HTMLElements.STRONG STRONG ,
HTMLElements.SUB SUB ,
HTMLElements.SUP SUP ,
HTMLElements.TEXTAREA TEXTAREA ,
HTMLElements.TT TT ,
HTMLElements.U U ,
HTMLElements.VAR VAR
This set is defined in the HTML 4.01 Transitional DTD,
but more detailed information can be found in the
HTML 4.01 specification section 7.5.3 - Block-level and inline elements
and the CSS2 specification section 9.2.2 - Inline-level elements and inline boxes. | public static Set | getNestingForbiddenElementNames() Returns a set containing the
of all of the HTML elements
which should never contain elements of the same name, either as direct or indirect descendants. | public static Set | getNonterminatingElementNames(String endTagOptionalElementName) Returns the
of elements that do NOT implicitly terminate
an HTML element with the specified name.
Neither can any tag nested inside any of these elements implicitly terminate the specified element,
even if it is listed as one of the
or
.
This method is only relevant to HTML elements for which the
.
It returns null if
HTMLElements.getEndTagOptionalElementNames() .contains(endTagOptionalElementName.toLowerCase())==null .
Parameters: endTagOptionalElementName - the of an element for which the . | public static Set | getStartTagOptionalElementNames() Returns a set containing the
of all of the HTML elements
for which the
is optional.
Elements with optional start tags must be present in the document object model (DOM)
in certain locations, either forming part of the structure of the HTML document as a whole
(e.g. | public static Set | getTerminatingEndTagNames(String endTagOptionalElementName) Returns the
of end tags that implicitly terminate
an HTML element with the specified name.
This method is only relevant to HTML elements for which the
.
It returns null if
HTMLElements.getEndTagOptionalElementNames() .contains(endTagOptionalElementName.toLowerCase())==null .
Note that removing the tag name matching the specified element has no effect on the behaviour of the parser,
as it is always assumed that a start tag is terminated by an end tag with a matching name.
Parameters: endTagOptionalElementName - the of an element for which the . | public static Set | getTerminatingStartTagNames(String endTagOptionalElementName) Returns the
of start tags that implicitly terminate
an HTML element with the specified name.
This method is only relevant to HTML elements for which the
.
It returns null if
HTMLElements.getEndTagOptionalElementNames() .contains(endTagOptionalElementName.toLowerCase())==null .
Parameters: endTagOptionalElementName - the of an element for which the . | final static HTMLElementTerminatingTagNameSets | getTerminatingTagNameSets(String endTagOptionalElementName) | final static boolean | isClosingSlashIgnored(String elementName) |
getBlockLevelElementNames | public static Set getBlockLevelElementNames()(Code) | | Returns a set containing the
of all the
block-level elements.
The element names contained in this set are:
HTMLElements.ADDRESS ADDRESS ,
HTMLElements.BLOCKQUOTE BLOCKQUOTE ,
HTMLElements.CENTER CENTER ,
HTMLElements.DIR DIR ,
HTMLElements.DIV DIV ,
HTMLElements.DL DL ,
HTMLElements.FIELDSET FIELDSET ,
HTMLElements.FORM FORM ,
HTMLElements.H1 H1 ,
HTMLElements.H2 H2 ,
HTMLElements.H3 H3 ,
HTMLElements.H4 H4 ,
HTMLElements.H5 H5 ,
HTMLElements.H6 H6 ,
HTMLElements.HR HR ,
HTMLElements.ISINDEX ISINDEX ,
HTMLElements.MENU MENU ,
HTMLElements.NOFRAMES NOFRAMES ,
HTMLElements.NOSCRIPT NOSCRIPT ,
HTMLElements.OL OL ,
HTMLElements.P P ,
HTMLElements.PRE PRE ,
HTMLElements.TABLE TABLE ,
HTMLElements.UL UL
This set is defined in the HTML 4.01 Transitional DTD,
but more detailed information can be found in the
HTML 4.01 specification section 7.5.3 - Block-level and inline elements
and the CSS2 specification section 9.2.1 - Block-level elements and block boxes.
The CSS2 display property can be used
to override the normal box type of an element.
a set containing the of all the block-level elements. See Also: HTMLElements.getInlineLevelElementNames() |
getConstantElementName | final static String getConstantElementName(String elementName)(Code) | | |
getDeprecatedElementNames | public static Set getDeprecatedElementNames()(Code) | | Returns a set containing the
of all
deprecated elements in HTML 4.01.
a set containing the of all deprecated elements in HTML 4.01. |
getElementNames | final public static List getElementNames()(Code) | | Returns a list containing all of the
.
The returned list is in alphabetical order.
a list containing of all the . |
getInlineLevelElementNames | public static Set getInlineLevelElementNames()(Code) | | Returns a set containing the
of all the
inline-level elements.
The element names contained in this set are:
HTMLElements.A A ,
HTMLElements.ABBR ABBR ,
HTMLElements.ACRONYM ACRONYM ,
HTMLElements.APPLET APPLET ,
HTMLElements.B B ,
HTMLElements.BASEFONT BASEFONT ,
HTMLElements.BDO BDO ,
HTMLElements.BIG BIG ,
HTMLElements.BR BR ,
HTMLElements.BUTTON BUTTON ,
HTMLElements.CITE CITE ,
HTMLElements.CODE CODE ,
HTMLElements.DEL DEL ,
HTMLElements.DFN DFN ,
HTMLElements.EM EM ,
HTMLElements.FONT FONT ,
HTMLElements.I I ,
HTMLElements.IFRAME IFRAME ,
HTMLElements.IMG IMG ,
HTMLElements.INPUT INPUT ,
HTMLElements.INS INS ,
HTMLElements.KBD KBD ,
HTMLElements.LABEL LABEL ,
HTMLElements.MAP MAP ,
HTMLElements.OBJECT OBJECT ,
HTMLElements.Q Q ,
HTMLElements.S S ,
HTMLElements.SAMP SAMP ,
HTMLElements.SCRIPT SCRIPT ,
HTMLElements.SELECT SELECT ,
HTMLElements.SMALL SMALL ,
HTMLElements.SPAN SPAN ,
HTMLElements.STRIKE STRIKE ,
HTMLElements.STRONG STRONG ,
HTMLElements.SUB SUB ,
HTMLElements.SUP SUP ,
HTMLElements.TEXTAREA TEXTAREA ,
HTMLElements.TT TT ,
HTMLElements.U U ,
HTMLElements.VAR VAR
This set is defined in the HTML 4.01 Transitional DTD,
but more detailed information can be found in the
HTML 4.01 specification section 7.5.3 - Block-level and inline elements
and the CSS2 specification section 9.2.2 - Inline-level elements and inline boxes.
The CSS2 display property can be used
to override the normal box type of an element.
The HTML Document Type Definitions
forbid the presence of
inside inline-level elements,
but it is tolerated by all popular browsers in various situations, even in XHTML documents.
The most notorious example of this is the common inclusion of block-level elements inside
HTMLElementName.FONT FONT elements.
a set containing the of all the inline-level elements. See Also: HTMLElements.getBlockLevelElementNames() |
getNestingForbiddenElementNames | public static Set getNestingForbiddenElementNames()(Code) | | Returns a set containing the
of all of the HTML elements
which should never contain elements of the same name, either as direct or indirect descendants.
a set containing the of all of the HTML elements which should never contain elements of the same name. |
getStartTagOptionalElementNames | public static Set getStartTagOptionalElementNames()(Code) | | Returns a set containing the
of all of the HTML elements
for which the
is optional.
Elements with optional start tags must be present in the document object model (DOM)
in certain locations, either forming part of the structure of the HTML document as a whole
(e.g. the
HTMLElementName.HTML HTML ,
HTMLElementName.HEAD HEAD , and
HTMLElementName.BODY BODY elements),
or forming part of the structure of a
HTMLElementName.TABLE TABLE element (e.g. the
HTMLElementName.TBODY TBODY element).
The location of an omitted start tag
in the document's object model can be inferred from the surrounding elements.
This library does not use this property in any way when parsing documents, and does not construct a document object model from the
source, so no implied element is created where an optional start tag is omitted.
When the start tag has been omitted in the document text, the corresponding end tag should also be omitted.
The index of elements in the HTML 4.01 specification
includes the letter 'O' in the "Start Tag" column for elements whose start tag is optional.
a set containing the of all of the HTML elements for which the is optional. |
isClosingSlashIgnored | final static boolean isClosingSlashIgnored(String elementName)(Code) | | |
|
|