我正在使用文本区域和文本字段上的inputmode属性获取验证错误。验证程序告诉我属性inputmode不允许在此处输入元素但是the HTML5 spec indicates that it is allowed。inputmode属性是否有效(以HTML5格式)还是不是?
是否有实际使用此代码做错了事,或者是有过错的验证?
这里是一个梗概情况下这将产生完全相同这种验证错误(两次)的,在一种情况下上的电子邮件输入,并且在另一上的文本区域。
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<form method="post" action="contactme.php">
<label class='pas block'>
Your E-Mail:<br/>
<input type='email' name='email' required inputmode='latin' placeholder='your e-mail here' />
</label>
<label class='pas block'>
Your Message:<br/>
<textarea name='message' required inputmode='latin' placeholder='and your message here!'></textarea>
</label>
</form>
</body>
</html>
也许验证程序不是HTML5验证程序或HTML5模式 –
我尝试了w3c验证程序和whatwg验证程序。 两个验证器在HTML5模式,和(即,因为)本实施例中有一个DOCTYPE HTML5也许 – brennanyoung
'inputmode'不能与(的某些值)联合'type'? –