MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / appendChild

Method appendChild

src/main/java/org/htmlunit/html/HtmlSelect.java:249–258  ·  view source on GitHub ↗

{@inheritDoc}

(final Node node)

Source from the content-addressed store, hash-verified

247 * {@inheritDoc}
248 */
249 @Override
250 public DomNode appendChild(final Node node) {
251 final DomNode response = super.appendChild(node);
252 if (node instanceof HtmlOption option) {
253 if (option.isSelected()) {
254 doSelectOption(option, true, false, false, false);
255 }
256 }
257 return response;
258 }
259
260 /**
261 * Sets the "selected" state of the specified option. If this "select" element

Callers 1

appendOptionMethod · 0.95

Calls 2

doSelectOptionMethod · 0.95
isSelectedMethod · 0.45

Tested by

no test coverage detected