欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-05-18 07:50:11
the 'idl' comes from the web idl spec:   this document defines an interface definition...
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.