nTr.getAttribute('class') returns null
nTr.getAttribute('class') returns null
![[Deleted User]](https://secure.gravatar.com/avatar/2bae37f703b2e64eb2bdfa1fe850bdf8/?default=https%3A%2F%2Fvanillicon.com%2F2bae37f703b2e64eb2bdfa1fe850bdf8_200.png&rating=g&size=120)
I am working on an intranet web application using dataTables 1.8.2.
The problem appears to occur only in IE9 when it loads the Browser Mode as IE9 Compat View / Document Mode IE7. This happens because by default, IE9 applies this setup to intranet / local sites. I have no idea why.
When using fnSettings().aoData[0].nTr.getAttribute('class'), null is returned. When Document Mode is set to IE8 standards or above, it returns the correct class.
Interestingly, if I try using getAttribute('id'), the correct ID is returned.
How can I get / set the class of a given row within aoData when IE9 is in this compatibility mode?
An example of my problem is at http://live.datatables.net/ijowob
The problem appears to occur only in IE9 when it loads the Browser Mode as IE9 Compat View / Document Mode IE7. This happens because by default, IE9 applies this setup to intranet / local sites. I have no idea why.
When using fnSettings().aoData[0].nTr.getAttribute('class'), null is returned. When Document Mode is set to IE8 standards or above, it returns the correct class.
Interestingly, if I try using getAttribute('id'), the correct ID is returned.
How can I get / set the class of a given row within aoData when IE9 is in this compatibility mode?
An example of my problem is at http://live.datatables.net/ijowob
This discussion has been closed.
Replies