Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8519853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:22:09+00:00 2026-06-11T06:22:09+00:00

While reading over the WHATWG’s HTML5 – A technical specification for Web developers I

  • 0

While reading over the WHATWG’s HTML5 – A technical specification for Web developers I see many references such as:

Reflecting content attributes in IDL attributes

Some IDL attributes are defined to reflect a particular content
attribute. This means that on getting, the IDL attribute returns the
current value of the content attribute, and on setting, the IDL
attribute changes the value of the content attribute to the given
value.

and:

In conforming documents, there is only one body element. The
document.body IDL attribute provides scripts with easy access to a
document’s body element.

The body element exposes as event handler content attributes a number
of the event handlers of the Window object. It also mirrors their
event handler IDL attributes.

My (admittedly fuzzy) understanding comes from the Windows world. I think an .idl file is used to map remote procedure calls in an n-tier distributed app. I would assume a content attribute refers to html element attributes.

There is no place in the standard that I can see that explains this usage of the terms “content attribute” and “IDL attribute”. Could anyone explain what these terms mean and how the two kinds of attributes relate?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:22:10+00:00Added an answer on June 11, 2026 at 6:22 am

    The IDL (Interface Definition Language) 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:

    <div id="mydiv" class="example"></div>
    

    In the above code id and class are attributes. Usually a content attribute will have a corresponding IDL attribute.

    For example, the following JavaScript:

    document.getElementById('mydiv').className = 'example'
    

    Is equivalent to setting the class content attribute.

    In JavaScript texts, the IDL attributes are often referred to as properties because they are exposed as properties of DOM objects to JavaScript.

    While there’s usually a corresponding pair of a content attribute and an IDL attribute/property, they are not necessarily interchangeable. For example, for an <option> element:

    • the content attribute selected indicates the initial state of the option (and does not change when the user changes the option),
    • the property selected reflects the current state of the control
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a file contains lines such as: (?i:\bsys\.user_catalog\b) While reading those line, I want
I've been searching and reading up on SignalR recently and, while I see a
I am reading an ATOM feed with jQuery and looping over the results. While
While reading this class BitmapFactory I noticed that almost all methods inside are static.
While reading the K&R 2nd edition I noticed that the programs always began with
While reading from serial port I am using serialport.read(xyz,0,4) where xyz is a byte
While reading from a configuration file in Perl there might be cases when a
While reading through another question here, on creating a URL shortening service, it was
While reading the answers to this question I got a doubt regarding the default
While reading cocoa tutorials i've noticed that some of the tutorials use AppDelegate and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.