Is HTML 5 supported by all the main browsers?

前端 未结 9 1178
情歌与酒
情歌与酒 2020-12-19 08:32

I am looking at the custom attributes feature of html 5 here at this link http://ejohn.org/blog/html-5-data-attributes/

This look like the perfect thing for when

相关标签:
9条回答
  • 2020-12-19 08:39

    Almost no web technology is completely supported by any browser; no bugs, quirks or issues.

    HTML5 is designed for backwards compatibility, and it will hardly break your site (take <input type=url> for instance - non-supporting browsers show an ordinary text box, Opera lets you select an URL from history/bookmarks). I'd go by the approach: develop, try in the browsers you need to support - if it works, awesome. If not, don't use it. Just like with other specs.

    0 讨论(0)
  • 2020-12-19 08:43

    No.

    The Wikipedia page "Comparison of layout engines (HTML 5)" does a good job of listing which engines have implemented which parts of HTML5.

    There is currently a lot of red boxes on those tables, and that is based on the latest development version, not the version most users will be using.

    0 讨论(0)
  • 2020-12-19 08:45

    Various portions of HTML5 are supported by the different browsers, for various definitions of 'supported'.

    Several parts work right now, reliably. The data-* attributes you ask about in your question work just fine in every browser, even IE6; however, nobody yet supports the fun "dataset" method to access them. As long as you're fine with just grabbing them by the full attr name, you're golden. I use them to store state all the time in my webapps, as they're the officially blessed method for doing so.

    Wikipedia has a good summary of the various support levels across browsers: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML_5)

    0 讨论(0)
  • 2020-12-19 08:46

    no, not yet. wait at least until gecko and webkit support it.

    ps: you could use html 5 with data attributes anyway, if you need it for javascript purposes. or choose some other unused attributes (title, abbr, ...others?)

    0 讨论(0)
  • 2020-12-19 08:50

    Full support of HTML 5 is a way off BUT...

    Creating custom attributes is nothing new and is likely to work in all the main browsers - but test to be sure that it will work in your case.

    We can use HTML 5 now, just not all of it. A lot of HTML 5 is about formalising the way that HTML is currently used and ensuring backwards compatibility - so if a feature works in browsers now, use it.

    0 讨论(0)
  • 2020-12-19 08:52

    As of August 25, HTML 5 is still a working draft. http://dev.w3.org/html5/spec/Overview.html

    0 讨论(0)
提交回复
热议问题