|
|
|
|
|
by cm2187
3628 days ago
|
|
And not just in javascript. HTML is largely the culprit too. A lot is done in javascript that HTML should really handle. For instance why can't we just add a URL attribute to an input to provide autocomplete and validation. It is such a common scenario there shouldn't be a need for a javascript framework to provide that. Same thing with responsive design. But these technologies are stuck in the 90s and barely evolve anymore. |
|
You can. <input type="url" /> is part of HTML5[0].
Of course, support may not be universal[1], which is why you will probably always have to use javascript if cross-compatibility matters.
[0]https://www.w3.org/TR/html-markup/input.url.html
[1]http://caniuse.com/#feat=input-email-tel-url