/src/main/java/org/htmlunit/util/UrlUtils.java
} 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, final String path, final String ref, final String query) throws MalformedURLException {