| Changed Methods |
Element
addClass(
String)
|
Documentation changed from old to new. |
Add a class name to this element's {@code class} attribute. |
Element
appendChild(
Node)
|
Documentation changed from old to new. |
Insert a node to the end of this Element's children. |
Element
appendElement(
String)
|
Documentation changed from old to new. |
Create a new element by tag name, and add it as the last child. |
Element
appendText(
String)
|
Documentation changed from old to new. |
Create and append a new TextNode to this element. |
Attributes
attributes()
|
Documentation changed from old to new. Method was inherited from Node, but is now defined locally. |
|
String
baseUri()
|
Documentation changed from old to new. Method was inherited from Node, but is now defined locally. |
|
Element
child(
int)
|
Documentation changed from old to new. |
Get a child element of this element, by its 0-based index number. |
int
childNodeSize()
|
Documentation changed from old to new. Method was inherited from Node, but is now defined locally. Change from final to non-final. |
|
Elements
children()
|
Documentation changed from old to new. |
Get this element's child elements. |
String
data()
|
Documentation changed from old to new. |
Get the combined data of this element. |
Node
doClone(
Node)
|
Method was inherited from Node, but is now defined locally. |
|
Node
empty()
|
Change in return type from Element to Node. |
Remove all of the element's child nodes. |
List
ensureChildNodes()
|
Change in return type from void to List. Method was inherited from Node, but is now defined locally. |
|
Element
firstElementSibling()
|
Documentation changed from old to new. |
Gets the first Element sibling of this element. |
Elements
getAllElements()
|
Documentation changed from old to new. |
Find all elements under this element (including self, and children of children). |
Elements
getElementsByAttributeValue(
String,
String
)
|
Documentation changed from old to new. |
Find elements that have an attribute with the specific value. |
Elements
getElementsByAttributeValueContaining(
String,
String
)
|
Documentation changed from old to new. |
Find elements that have attributes whose value contains the match string. |
Elements
getElementsByAttributeValueEnding(
String,
String
)
|
Documentation changed from old to new. |
Find elements that have attributes that end with the value suffix. |
Elements
getElementsByAttributeValueNot(
String,
String
)
|
Documentation changed from old to new. |
Find elements that either do not have this attribute, or have it with a different value. |
Elements
getElementsByAttributeValueStarting(
String,
String
)
|
Documentation changed from old to new. |
Find elements that have attributes that start with the value prefix. |
Elements
getElementsByClass(
String)
|
Documentation changed from old to new. |
Find elements that have this class, including or under this element. |
boolean
hasText()
|
Documentation changed from old to new. |
Test if this element has any text content (that is not just whitespace). |
boolean
isBlock()
|
Documentation changed from old to new. |
Test if this element is a block-level element. |
Element
lastElementSibling()
|
Documentation changed from old to new. |
Gets the last element sibling of this element. |
Element
nextElementSibling()
|
Documentation changed from old to new. |
Gets the next sibling element of this element. |
String
ownText()
|
Documentation changed from old to new. |
Gets the (normalized) text owned by this element only; does not get the combined text of all children. |
Element
prependChild(
Node)
|
Documentation changed from old to new. |
Add a node to the start of this element's children. |
Element
prependElement(
String)
|
Documentation changed from old to new. |
Create a new element by tag name, and add it as the first child. |
Element
prependText(
String)
|
Documentation changed from old to new. |
Create and prepend a new TextNode to this element. |
Node
removeAttr(
String)
|
Documentation changed from old to new. Method was inherited from Node, but is now defined locally. |
|
Element
removeClass(
String)
|
Documentation changed from old to new. |
Remove a class name from this element's {@code class} attribute. |
Tag
tag()
|
Documentation changed from old to new. |
Get the Tag for this element. |
String
toString()
|
Documentation changed from old to new. Method was locally defined, but is now inherited from Node. |
Gets this node's outer HTML. |
Element
toggleClass(
String)
|
Documentation changed from old to new. |
Toggle a class name on this element's {@code class} attribute: if present, remove it; otherwise add it. |
Node
traverse(
NodeVisitor)
|
Documentation changed from old to new. Method was inherited from Node, but is now defined locally. |
|
Element
attr(
String,
boolean
)
|
Documentation changed from old to new. |
Set a boolean attribute value on this element. |
Node
attr(
String,
String
)
|
Documentation changed from old to new. |
Set an attribute value on this element. |
Element
classNames(
Set)
|
Documentation changed from old to new. |
Set the element's {@code class} attribute to the supplied class names. |
Elements
getElementsByAttributeValueMatching(
String,
String
)
|
Documentation changed from old to new. |
Find elements that have attributes whose values match the supplied regular expression. |
Elements
getElementsMatchingOwnText(
String)
|
Documentation changed from old to new. |
Find elements whose own text matches the supplied regular expression. |
Elements
getElementsMatchingText(
String)
|
Documentation changed from old to new. |
Find elements whose text matches the supplied regular expression. |
Appendable
html(
Appendable)
|
Documentation changed from old to new. |
|
String
html()
|
Documentation changed from old to new. |
Retrieves the element's inner HTML. |
Element
tagName(
String)
|
Documentation changed from old to new. |
Change (rename) the tag of this element. |
String
tagName()
|
Documentation changed from old to new. |
Get the name of the tag for this element. |
Element
text(
String)
|
Documentation changed from old to new. |
Set the text of this element. |
String
text()
|
Documentation changed from old to new. |
Gets the normalized, combined text of this element and all its children. |