TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Have a website? Fix these 2 mistakes right now

4 点作者 MrMike超过 10 年前

1 comment

chrishepner超过 10 年前
Unfortunately, I don&#x27;t think it&#x27;s as simple as &quot;just use the &#x27;url&#x27; and &#x27;email&#x27; input types for their respective fields.&quot;<p>Using the &quot;url&quot; input type can be a problem, due to strict validation - the validator requires a URI as specified by RFC 3986, meaning that if the user enters &quot;example.com&quot; rather than &quot;<a href="http://example.com&quot;" rel="nofollow">http:&#x2F;&#x2F;example.com&quot;</a>, the browser considers this invalid, blocks the form submission, and displays an error like &quot;Please enter a URL&quot;.<p>This effectively breaks the form for most users, on mobile or not, so you&#x27;d need to disable HTML5 input validation on this form or field.
评论 #8488310 未加载