This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22849 - there is no IDL dom attribute for inert state of element
Summary: there is no IDL dom attribute for inert state of element
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-31 19:41 UTC by contributor
Modified: 2013-08-14 20:19 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-07-31 19:41:21 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html
Multipage: http://www.whatwg.org/C#global-attributes
Complete: http://www.whatwg.org/c#global-attributes
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html

Comment:
there is no IDL dom attribute for inert state of element

Posted from: 95.84.151.114
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
Comment 1 Ian 'Hixie' Hickson 2013-07-31 21:25:27 UTC
What's the use case?
Comment 2 Arthur Stolyar 2013-08-12 11:56:59 UTC
May be for custom html widgets, which might be disabled programmatically (actually be inert), instead of manually prevent events to be fired on what elements.

Example:

MyCustomControl.disabled = function() {
this.element.inert = true;
}

MyCustomControl.disable();

If you meant why "inert" attribute should have corresponding DOM idl property of element, then I should ask--why other attributes have?

P.S. Sorry for anonymous bug report.
Comment 3 Ian 'Hixie' Hickson 2013-08-12 23:11:58 UTC
Oh you mean a reflection attribute for the content attribute, not an attribute that reports the current state, I see. My apologies. Yeah, not having that is just an oversight, my bad.
Comment 4 contributor 2013-08-12 23:12:21 UTC
Checked in as WHATWG revision r8140.
Check-in comment: HTMLElement.inert IDL attribute
http://html5.org/tools/web-apps-tracker?from=8139&to=8140
Comment 5 Arthur Stolyar 2013-08-13 00:18:16 UTC
I was glad to help :)
Comment 6 contributor 2013-08-14 20:19:56 UTC
Checked in as WHATWG revision r8144.
Check-in comment: Ack for r8140
http://html5.org/tools/web-apps-tracker?from=8143&to=8144