We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c74a3 commit d4fa6b8Copy full SHA for d4fa6b8
1 file changed
src/main/java/org/htmlunit/javascript/host/dom/Document.java
@@ -4037,9 +4037,7 @@ public HtmlUnitScriptable getElementById(final String id) {
4037
final DomNode domNode = getDomNodeOrDie();
4038
final Object domElement = domNode.getFirstByXPath("//*[@id = \"" + id + "\"]");
4039
if (domElement != null) {
4040
- if (LOG.isDebugEnabled()) {
4041
- LOG.debug("getElementById(" + id + "): no HTML DOM node found with this ID");
4042
- }
+ return ((DomElement) domElement).getScriptableObject();
4043
}
4044
return null;
4045
0 commit comments