MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / DomNode

Class DomNode

src/main/java/org/htmlunit/html/DomNode.java:82–2311  ·  view source on GitHub ↗

Base class for nodes in the HTML DOM tree. This class is modeled after the W3C DOM specification, but does not implement it. @author Mike Bowler @author Mike J. Bresnahan @author David K. Taylor @author Christian Sell @author Chris Erskine @author Mike Williams @author Marc Guillemot @author Denis

Source from the content-addressed store, hash-verified

80 * @author Lai Quang Duong
81 */
82public abstract class DomNode implements Cloneable, Serializable, Node {
83
84 /** A ready state constant (state 1). */
85 public static final String READY_STATE_UNINITIALIZED = "uninitialized";
86
87 /** A ready state constant (state 2). */
88 public static final String READY_STATE_LOADING = "loading";
89
90 /** A ready state constant (state 3). */
91 public static final String READY_STATE_LOADED = "loaded";
92
93 /** A ready state constant (state 4). */
94 public static final String READY_STATE_INTERACTIVE = "interactive";
95
96 /** A ready state constant (state 5). */
97 public static final String READY_STATE_COMPLETE = "complete";
98
99 /** The name of the "element" property. Used when watching property change events. */
100 public static final String PROPERTY_ELEMENT = "element";
101
102 private static final NamedNodeMap EMPTY_NAMED_NODE_MAP = new ReadOnlyEmptyNamedNodeMapImpl();
103
104 /** The owning page of this node. */
105 private SgmlPage page_;
106
107 /** The parent node. */
108 private DomNode parent_;
109
110 /**
111 * The previous sibling. The first child's <code>previousSibling</code> points
112 * to the end of the list
113 */
114 private DomNode previousSibling_;
115
116 /**
117 * The next sibling. The last child's <code>nextSibling</code> is {@code null}
118 */
119 private DomNode nextSibling_;
120
121 /** Start of the child list. */
122 private DomNode firstChild_;
123
124 /**
125 * This is the JavaScript object corresponding to this DOM node. It may
126 * be null if there isn't a corresponding JavaScript object.
127 */
128 private HtmlUnitScriptable scriptObject_;
129
130 /** The ready state is a value that is available to a large number of elements. */
131 private String readyState_;
132
133 /**
134 * The line number in the source page where the DOM node starts.
135 */
136 private int startLineNumber_ = -1;
137
138 /**
139 * The column number in the source page where the DOM node starts.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…