nTr.getAttribute('class') returns null
nTr.getAttribute('class') returns null
[Deleted User]
Posts: 0Questions: 2Answers: 0
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