TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why isn't the <html> element 100% supported on caniuse.com?

300 pointsby GavinAndereggover 1 year ago

11 comments

rezonantover 1 year ago
You&#x27;ll notice that CanIUse has a &quot;% of all&quot; option right above the Global percentage. If you dig into the gear wheel on a feature you&#x27;ll see more information about this:<p>Usage calculation:<p>( ) All Users: Any usage % of browsers not tracked by caniuse is considered unsupported.<p>( ) All tracked users: Excludes the usage percentage of browsers not tracked on caniuse.<p>This implies that CanIUse pulls in data about global browser usage, but does not cover all of the browsers mentioned in that usage data. By default it just assumes that browsers that it doesn&#x27;t track any data on are not supported. If you change this to All Tracked Users you then get 98.71%.<p>The sum total of the browsers listed in the chart which have unknown support (these are different than the browsers being referred to in the setting above) is 1.27%. Worth it to note that likely there&#x27;s some rounding going on here, as when you take 98.71% and add in that 1.27% you get 99.97999..%<p>Pretty close though.<p>So the real issue is indeed that those browsers show Unknown, when I think we can safely say they do in fact support the html element.
评论 #39237093 未加载
评论 #39237583 未加载
OJFordover 1 year ago
&gt; MDN used to stand for Mozilla Developer Network. Now it’s just MDN. I spent a few minutes looking on the MDN site to see if I could find any mention of the full name, but I guess they’re just all in on “MDN” now.<p>Huh, yeah, nerd-sniped on that one; I can&#x27;t find anything either.
评论 #39236269 未加载
评论 #39235944 未加载
评论 #39236112 未加载
评论 #39235742 未加载
评论 #39235709 未加载
评论 #39235749 未加载
评论 #39235650 未加载
评论 #39237745 未加载
评论 #39237060 未加载
评论 #39235731 未加载
GavinAndereggover 1 year ago
Interestingly, it was also pointed out to me that the `a` and `p` elements have exactly the same 97.34% support. Both of these elements have data coming from MDN like the `html` element. See: <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;mdn-html_elements_a" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;mdn-html_elements_a</a> and <a href="https:&#x2F;&#x2F;caniuse.com&#x2F;mdn-html_elements_p" rel="nofollow">https:&#x2F;&#x2F;caniuse.com&#x2F;mdn-html_elements_p</a><p>I&#x27;ve updated the article to note this.
phyzomeover 1 year ago
Probably worth breaking out a separate feature &quot;html-manifest&quot; on caniuse.<p>Also, I want to echo that MDN is a <i>fantastic</i> resource.
mattlover 1 year ago
The original webpage doesn’t use the html element.<p><a href="http:&#x2F;&#x2F;info.cern.ch&#x2F;hypertext&#x2F;WWW&#x2F;TheProject.html" rel="nofollow">http:&#x2F;&#x2F;info.cern.ch&#x2F;hypertext&#x2F;WWW&#x2F;TheProject.html</a>
therealmarvover 1 year ago
Is this related to the most minimal valid HTML? No HTML tag there.<p><pre><code> &lt;!DOCTYPE html&gt;&lt;title&gt; &lt;&#x2F;title&gt;</code></pre>
评论 #39236667 未加载
评论 #39237026 未加载
评论 #39238222 未加载
starkparkerover 1 year ago
&gt; a lot of the data on the site actually comes from MDN<p>Eh... not really.<p>The feature support matrix (as linked on CanIUse) comes from MDN&#x27;s browser-compat-data repo. Here&#x27;s the HTML element&#x27;s source data: <a href="https:&#x2F;&#x2F;github.com&#x2F;mdn&#x2F;browser-compat-data&#x2F;blob&#x2F;main&#x2F;html&#x2F;elements&#x2F;html.json">https:&#x2F;&#x2F;github.com&#x2F;mdn&#x2F;browser-compat-data&#x2F;blob&#x2F;main&#x2F;html&#x2F;el...</a><p>This doesn&#x27;t contain the testing and usage info that CanIUse cites for support, though, just which browser versions included which features.<p>CanIUse also points to their own repo, which contains a lot of data: <a href="https:&#x2F;&#x2F;github.com&#x2F;fyrd&#x2F;caniuse">https:&#x2F;&#x2F;github.com&#x2F;fyrd&#x2F;caniuse</a><p>But I can&#x27;t find an easy entry point to find where they&#x27;re getting the numbers for a specific element. The data on there seems to be primarily for features.<p>So the more precise question is, where is CanIUse getting HTML element testing and usage numbers from? Because that seems to be the issue.
ameliusover 1 year ago
Shouldn&#x27;t the html element have a support percentage at least as low as any other element?
评论 #39236712 未加载
barbazooover 1 year ago
&gt; So yeah, I don’t have a great answer for this. If you do, please let me know!
评论 #39236877 未加载
galaxyLogicover 1 year ago
What would it mean to NOT &quot;support&quot; &lt;html&gt; -element?<p>Is putting &lt;html&gt; on a page supposed to somehow alter the way the page is presented?
评论 #39239996 未加载
drewtatoover 1 year ago
It&#x27;s nice to have something that the humans know with absolute certainty so that we know much to trust the machines.