/src/main/java/org/htmlunit/html/HtmlUrlInput.java
if ( browserVersion.hasFeature( JS_INPUT_URL_VALUE_TRIMMED) ) { final BrowserVersion browserVersion = page.getWebClient( ).getBrowserVersion( ) ;
final BrowserVersion browserVersion = page.getWebClient ( ) .getBrowserVersion ( ) ; if ( browserVersion.hasFeature ( JS_INPUT_URL_VALUE_TRIMMED ) ) {
public class HtmlUrlInput extends HtmlSelectableTextInput implements LabelableElement { HtmlUrlInput(final String qualifiedName, final SgmlPage page, final Map<String, DomAttr> attributes) { super(qualifiedName, page, trimValueAttribute(page, attributes)); } private static Map<String, DomAttr> trimValueAttribute(final SgmlPage page, final Map<String, DomAttr> attributes) { <extra_id_0> for (final Map.Entry<String, DomAttr> entry : attributes.entrySet()) { if (VALUE_ATTRIBUTE.equalsIgnoreCase(entry.getKey())) { entry.getValue().setValue(entry.getValue().getValue().trim()); break; } }