Enabled attribute of HTML5 elements belongs to which interface?

Asked

Viewed 189 times

1

I noticed that some elements of HTML accept the enabled attribute, but I could not identify in W3C which interface shows its possibility of its use. Thank you!

  • you want to know which elements (tags) use the enable?

  • No, it would be too complex. What I would like to know is which interface (Ex: Htmlelement interface, Element interface, Node interface..) shows us the possibility of using the enable attribute by the elements. (Ex: <html enable>, <html disabled>). Thank you!

  • I think I understand... Usually the elements that accept the enable and disabled are buttons, inputs, and text boxes, in general everything related to forms. But I’m not sure if other types of elements accept this property.

  • Check this link: http://www.w3.org/TR/2012/WD-html5-20121025/elements.html#htmlelement has the Htmlelement interface, but there is no attribute that leads me to the use of enable/disabled. I believe that its use is in another interface. But, what is this interface? Thank you =)

1 answer

2


There is no attribute enabled in HTML. There is a property .enabled in the Audio API, and there is a pseudo-selector :enabled in the CSS API.

The enabled which would be expected in elements of <form> and that the CSS have, "it is said" enabled but it means "not-disabled". That is, it is the presence or absence of the attribute disabled indicating whether an item is active (enabled) or not.

  • Sergio, can I use pseudo-class in any HTML element? Thank you =)

  • 1

    @Ingridfarabulini the elements that respond to :enabled sane ["button", "input", "select", "textarea", "optgroup", "option", "menuitem", "fieldset"]. It’s in the link I put up, in the answer.

  • had seen the link you passed, but I noticed that it is also possible to disable, for example, the html element in IE. I also understood that disabled is not an element attribute. So here in Brazil, when the 'disabled' is present in an element, should I define that the element has a pseudo-class or is it another name? Selector? Thank you =)

  • Check this link: https://developer.mozilla.org/en-US/docs/HTML/Attributes In this link disabled is considered an attribute.

  • 1

    @Ingridfarabulini there is an attribute disabled Yes, what does not exist is the enabled. The pseudo-selector is for CSS and there is :enabled.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.