html5教程-What does idl attribute mean in the W3C html5 standard document?

发布时间:2018-12-18 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了html5教程-What does idl attribute mean in the W3C html5 standard document?脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。
The 'IDL' comes from the Web IDL spec:

 

This document defines an interface definition language, Web IDL, that can be used to describe interfaces that are intended to be implemented in web browsers. Web IDL is an IDL variant with a number of features that allow the behavior of common script objects in the web platform to be specified more readily. How interfaces described with Web IDL correspond to constructs within ECMAScript execution environments is also detailed in this document.

 

Content attributes are the ones that appear in the markup:

 

<p id="myp" class="example"></p>In the above code id and class are attributes. Usually a content attribute will have a corresponding IDL attribute, for example doing this from JavaScript:

 

document.getElementById('myp').className = 'example'Is equivalent to setting the class content attribute.

 

The 'IDL' comes from the Web IDL spec:

 

This document defines an interface definition language, Web IDL, that can be used to describe interfaces that are intended to be implemented in web browsers. Web IDL is an IDL variant with a number of features that allow the behavior of common script objects in the web platform to be specified more readily. How interfaces described with Web IDL correspond to constructs within ECMAScript execution environments is also detailed in this document.

 

Content attributes are the ones that appear in the markup:

 

<p id="myp" class="example"></p>In the above code id and class are attributes. Usually a content attribute will have a corresponding IDL attribute, for example doing this from JavaScript:

 

document.getElementById('myp').className = 'example'Is equivalent to setting the class content attribute.

 

觉得可用,就经常来吧! 脚本宝典 欢迎评论哦! html5教程,巧夺天工,精雕玉琢。小宝典献丑了!

脚本宝典总结

以上是脚本宝典为你收集整理的html5教程-What does idl attribute mean in the W3C html5 standard document?全部内容,希望文章能够帮你解决html5教程-What does idl attribute mean in the W3C html5 standard document?所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: