- From: Andrea Nenci <andrea.nenci@uniecampus.it>
- Date: Thu, 1 Mar 2018 18:39:43 +0100
- To: <www-validator@w3.org>
- Message-ID: <!&!AAAAAAAAAAAYAAAAAAAAAEogD9d5nQBEpqiDjfUFMMvCgAAAEAAAALHGFvyTKexEjWm4Upd27k8BAA>
Trying to validate this simple code for testing:
<!DOCTYPE html>
<html>
<head>
<title>test</title>
</head>
<body>
<form action="/action_page.php">
Country code: <input type="text" name="country_code" pattern="[A-Za-z]{3}" title="Three letter country code">
<input type="submit">
</form>
<p><strong>Note:</strong> The pattern attribute of the input tag is not supported in Internet Explorer 9 and earlier versions.</p>
</body>
</html>
I’ll receive this error:
Error: Bad value [A-Za-z]{3} for attribute pattern on element <http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-input-element> input: Unterminated string constant.
<https://validator.w3.org/nu/#l9c111> From line 9, column 17; to line 9, column 111
try code: <input type="text" name="country_code" pattern="[A-Za-z]{3}" title="Three letter country code">↩ <in
I never see this before. It’s a bug or something change in pattern in html?
Received on Thursday, 1 March 2018 17:40:10 UTC