org.cyberneko.html

Class HTMLTagBalancer.Info

public static class HTMLTagBalancer.Info extends Object

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.

Author: Andy Clark

Field Summary
XMLAttributesattributes
The element attributes.
HTMLElements.Elementelement
The element.
QNameqname
The element qualified name.
Constructor Summary
Info(HTMLElements.Element element, QName qname)
Creates an element information object.
Info(HTMLElements.Element element, QName qname, XMLAttributes attributes)
Creates an element information object.

Field Detail

attributes

public XMLAttributes attributes
The element attributes.

element

public HTMLElements.Element element
The element.

qname

public QName qname
The element qualified name.

Constructor Detail

Info

public Info(HTMLElements.Element element, QName qname)
Creates an element information object.

Note: This constructor makes a copy of the element information.

Parameters: element The element qualified name.

Info

public Info(HTMLElements.Element element, QName qname, XMLAttributes attributes)
Creates an element information object.

Note: This constructor makes a copy of the element information.

Parameters: element The element qualified name. attributes The element attributes.

(C) Copyright 2002-2005, Andy Clark. All rights reserved.