Is html5 a template attribute to work in every browser or not? If it doesn’t work, what technique should I use to work in every browser?
No, it is not. Although you can use JavaScript to get the attribute and test it that way.
if ( ! input.hasOwnProperty('pattern') && ~input.value.search(input.pattern)) { // Valid input field for browsers which don't support `pattern` attribute. }
jsFiddle .
Source: https://habr.com/ru/post/908298/More articles:PHP Fatal error: function call undefined mssql_query () - phpConvert Ada string to C Void * - cHow to convert bitmap to byte array in Mono for Android - androidChange Java screen resolution - java"PHP Fatal error: call to undefined function mssql_select_db () in c: \ ... appscript.php on line 16" - phpHow to configure page code encoding? - phpHow to use the File.Copy C # method to copy files over a local network? - c #Python: IndexError: index index out of range - pythonCall vb6 dll from C # - c #How can I access a shared dictionary with multiprocessing? - pythonAll Articles