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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask YC: Are Standards a joke?

7 点作者 arunsharma超过 16 年前
What do you guys think ? Google news has - 1310 Errors, 91 warning(s) http://tinyurl.com/5vne4e Google.co.in has - 68 Errors, 13 warning(s) http://tinyurl.com/5oznsp News.ycombinator.com has - 136 Errors, 6 warning(s) http://tinyurl.com/5l6ftf Facebook has - 27 Errors, 6 warning(s) http://tinyurl.com/62xcta Yahoo has - 91 Errors, 64 warning(s) http://tinyurl.com/5bqf9p Youtube has - 70 Errors, 56 warning(s) http://tinyurl.com/5gsap7 Live has - 4 errors http://tinyurl.com/69x2ll Blogger has - 28 Errors http://tinyurl.com/5djo4q

8 条评论

sh1mmer超过 16 年前
There is enough standardization happening to allow your browser to render those pages. That's a good start.<p>The problem historically with Web Standards has been 2-fold the lack of concrete implementations for vendors to work from. This leads to a variety of interpretations of the details of the standard.<p>Secondly their has been a lack of incentive for people to create standard markup. I hope things like Open Social (with Caja) and Yahoo's Search Monkey fix that. In the case of Search Monkey by using a Microformat (which must be valid HTML) then you get an enhanced listing in the Yahoo search engine. A definite benefit.
tdavis超过 16 年前
I didn't look at all the pages, but Google News' 1310 errors are caused in large part by the fact that they don't even declare a doctype. The use of the <i>font</i> tag (and not even quoting attribute values) is pretty embarrassing, but as previously stated, it's "good enough" for most browsers to render it properly.<p>There are dozens of very valid reasons for why that isn't really "good enough," but I won't get into those here. I don't think it's a question of whether or not standards are a joke, I just think there is disagreement among people as to whether or not they're worth adhering to. Having a few errors is no big deal; using deprecated HTML tags <i>is</i> a big deal (or at least I assume it will be at some point). I don't think the standards were created under the assumption that everyone would adhere 100% to them; that simply requires more effort than most people are willing to put forth.<p>This is further compounded by the fact that, yes, browsers <i>do</i> generally properly render even horrific markup such as that on Google News. I would argue that this is only done because it's a necessity and it shouldn't be viewed as a license to create deplorable markup, but what do I know. Until such a time that the advantages of proper standards (and extensions of them, such as microformats) become real benefits to people/businesses, many (most?) will continue to create junk markup -- because they're simply lazy, want to save a few bytes on the page load, or whatever other justifications they come up with.<p>That doesn't mean standards are a joke, it just means the benefits are too few, too poorly understood, or perceived as too insignificant (who cares about blind people on the internet?!?!)
评论 #373687 未加载
kwamenum86超过 16 年前
On the web real standards usually evolve out of best practices of hackers. The "standards" set by standards bodies are standard in name only, for the most part. They publish a large specification and people keep what is useful and discard what sucks. Or if you are Microsoft, Apple, Mozilla, etc you create your own proprietary stuff.<p>I used to worry about standards until I realized that it costs time and money when and as long as the browsers are following a single standard its a waste of energy. Now if it works in all the browsers I push it live, standard or not. If it breaks, I fix it and then push it again.<p>It is all a big coordination game really. An invisible hand works well enough in the web marketplace of ideas.
blasdel超过 16 年前
Validation ≠ Standards<p>All of these parsing 'errors' have clear and straightforward ways to handle them — to the point where the browser can handle an unclosed &#60;p&#62; much faster than it can download and parse '&#60;/p&#62;'.<p>What's worse is that making a parse tree out of markup was never a problem! Consistent CSS layout has always had problems in all rendering engines, but parsing has never been problematic in the slightest.<p>Microsoft was absolutely right to cockblock XHTML — removing all parsing exception handling is so damn <i>counter-revolutionary</i>. It's pathetic that Microsoft understands the web better in this case than the W3C.
评论 #373698 未加载
olavk超过 16 年前
Dont confuse standards and validation. Web standards are of course critical for the workings of the web. Validation is highly overrated though.<p>The reason people get hung up about validation is that it can be performed mechanically and gives an unambigous result. However it only check against a small (and pretty unimportant) part of the specs. For example a validator cannot check if you use semantic markup (which is pretty important), but will complain about superficial and harmless errors like leaving out the type attribute on a script tag.
kiplinger超过 16 年前
Not when you are developing for a government client that could hypothetically get sued if you don't use them. They don't find that possibility funny.
danielrhodes超过 16 年前
Standards are like international law -- only half the countries follow half the laws half the time.
gojomo超过 16 年前
Standards are crucial to the rendering of all those pages -- but de facto standards, rather than de jure standards.