I'm working on a side project to handle my boorkmarks, stored through their urls. So I ended up with a form to add resources to my storage, something like:
<form action="" method="get"> <input type="url" name="resource"> <button type="submit">Add</button> </form>
Then I wondered whether I could extend my project to store books through ISBN numbers. An ISBN number isn't an url (a unique location), but an urn (a unique name, e.g.
urn:isbn:000-0-0000-0000-0). So my input should be of type uri, to cover both cases.
Except there is no
uri type for HTML
<input>. Feeling frustrution, I tried to enter an ISBN urn in my input of type url and clicked on "Add" to see the validation error... but it worked!
Is this a bug or a feature?
(I tried with both firefox and chrome)