Will HTML 5 data attribute support in old browsers?

前端 未结 4 2270
夕颜
夕颜 2021-02-19 07:55

I\'m storing some custom data in HTML5 data attribute for Jquery processing. will the custom data attribute available in Older browsers?

4条回答
  •  再見小時候
    2021-02-19 08:14

    Anything that supports HTML will be able to access a HTML data attribute. So processing it client side via JQUERY should be absolutely fine.

    In fact, i recently had to do this for a project at work and it worked a treat all the way down to ie7.

    If you want to use the HTML data attributes for styling via CSS, then you would need browsers that support CSS3 selectos. Which is anything below IE9 and some older versions of firefox.

    This might be of interest to you:

    Do HTML5 custom data attributes “work” in IE 6?

提交回复
热议问题