Package org.htmlunit.cyberneko
Class HTMLTagBalancer.Info
java.lang.Object
org.htmlunit.cyberneko.HTMLTagBalancer.Info
- Enclosing class:
HTMLTagBalancer
Element info for each start element. This information is used when
closing unbalanced inline elements. For example:
<i>unbalanced <b>HTML</i> content</b>
It seems that it is a waste of processing and memory to copy the attributes for every start element even if there are no unbalanced inline elements in the document. However, if the attributes are not saved, then important attributes such as style information would be lost.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe element attributes.final HTMLElements.Element
The element.final QName
The element qualified name. -
Constructor Summary
ConstructorsConstructorDescriptionInfo
(HTMLElements.Element element, QName qname) Creates an element information object.Info
(HTMLElements.Element element, QName qname, XMLAttributes attributes) Creates an element information object. -
Method Summary
-
Field Details
-
element
The element. -
qname
The element qualified name. -
attributes
The element attributes.
-
-
Constructor Details
-
Info
Creates an element information object.Note: This constructor makes a copy of the element information.
- Parameters:
element
- The element qualified name.qname
- qname
-
Info
Creates an element information object.Note: This constructor makes a copy of the element information.
- Parameters:
element
- The element qualified name.qname
- qnameattributes
- The element attributes.
-
-
Method Details