View Full Version : Accessing DOM methods through Element?

23 Oct 2006, 6:45 AM
Is there a way to get access to the DOM methods and properties of a node through element?

For example:
document.getElementById('node').disabled or

I thought I saw something in the Extensions code something like

Is this the proper way to do this? If so, it doesn't seem to be documented so I wasn't sure.

Thanks for clarification.

23 Oct 2006, 1:54 PM
Yes, the dom property gives access to the raw node. interesting it doesn't appear in the documentation since it looks like this:

* The DOM element
* @type HTMLElement
this.dom = dom;

Good ole JSDoc must be ignoring it.