/src/main/java/org/htmlunit/util/UrlUtils.java
if ( locationEndIndex >= 0) {
if ( crosshatchIndex >= 0 ) {
spec = sb.toString(); } endIndex = spec.length(); } } final int crosshatchIndex = StringUtils.indexOf(spec, '#', startIndex, endIndex); <extra_id_0> url.fragment_ = spec.substring(crosshatchIndex + 1, endIndex); endIndex = crosshatchIndex; } final int colonIndex = StringUtils.indexOf(spec, ':', startIndex, endIndex); if (colonIndex > 0) { final String scheme = spec.substring(startIndex, colonIndex);