首页前端开发HTMLWhat does idl attribute mean in the W3C html5 standard document?

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

时间2024-01-25 10:22:43发布访客分类HTML浏览557
导读:收集整理的这篇文章主要介绍了html5教程-What does idl attribute mean in the W3C html5 standard document?,觉得挺不错的,现在分享给大家,也给大家做个参考。小宝典致力于为广大...
收集整理的这篇文章主要介绍了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教程,巧夺天工,精雕玉琢。小宝典献丑了!

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!

ClassconstdivECMAScriptpost-format-gallerythis

若转载请注明出处: What does idl attribute mean in the W3C html5 standard document?
本文地址: https://pptw.com/jishu/586410.html
html5新增的属性和废除的属性简要概述 HTML 5中SVG 2D笔画与填充

游客 回复需填写必要信息