Sets the hash property. @param fragment the hash property
(final String fragment)
| 128 | * @param fragment the {@code hash} property |
| 129 | */ |
| 130 | @JsxSetter |
| 131 | public void setHash(final String fragment) throws MalformedURLException { |
| 132 | if (url_ == null) { |
| 133 | return; |
| 134 | } |
| 135 | url_ = UrlUtils.getUrlWithNewRef(url_, org.htmlunit.util.StringUtils.isEmptyOrNull(fragment) ? null : fragment); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * @return the host, that is the hostname, and then, if the port of the URL is nonempty, |
no test coverage detected