/src/main/java/org/htmlunit/html/xpath/XPathHelper.java
if ( result instanceof XNumber) {
else if ( result instanceof XNumber ) {
if (result instanceof XNodeSet) { final NodeList nodelist = result.nodelist(); for (int i = 0; i < nodelist.getLength(); i++) { list.add((T) nodelist.item(i)); } } <extra_id_0> list.add((T) Double.valueOf(result.num())); } else if (result instanceof XBoolean) { list.add((T) Boolean.valueOf(result.bool())); } else if (result instanceof XString) {