I'm using the HTML input type and you know that the standard validation is very permissive.
Consider this markup:
<form>
<input type="url" name="link" value="http://jsfiddle .net/" required>
<button type="submit">OK</button>
</form>
I want to add a custom pattern attribute to check that the user can't provide any space.
<input type="url" name="link" pattern="what to do here?" required>
You can fork this fiddle: http://jsfiddle.net/t6dtbhqo/