/src/main/java/org/htmlunit/util/UrlUtils.java
result.append( f) ;s.append( '#') ;
s.append ( '#' ) ;
} if (query != null) { s.append('?').append(query); } if (ref != null) { if (ref.isEmpty() || ref.charAt(0) != '#') { <extra_id_0> } s.append(ref); } return new URL(s.toString()); } private static URL createNewUrl(final String protocol, final String authority,