Side navigation
#10735 closed bug (invalid)
Opened November 09, 2011 04:16PM UTC
Closed November 14, 2011 07:09PM UTC
Last modified July 20, 2012 12:54PM UTC
Using "$(document).ready" causes warning about getAttributeNodeNS() being deprecated in Firefox
Reported by: | mkogan | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | misc | Version: | 1.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Load the following page in Firefox 8 with the web console open:
<html> <head> <script src="jquery-1.7.js"></script> <script> $(document).ready(function() { alert(8); }); </script> </head> </html>
and you get the warning:
"Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead."
It seems to be line 1556:
tds[ 0 ].style.display = "";
that's causing it.
Attachments (0)
Change History (11)
Changed November 09, 2011 06:57PM UTC by comment:1
component: | unfiled → misc |
---|---|
priority: | undecided → low |
Changed November 13, 2011 12:06PM UTC by comment:2
I'm getting same issue... :(
Changed November 13, 2011 08:16PM UTC by comment:3
keywords: | → needsreview |
---|---|
status: | new → open |
Changed November 14, 2011 05:33PM UTC by comment:4
My apologies, it seems to be caused by Firebug (it doesn't happen when Firebug is disabled).
Changed November 14, 2011 07:09PM UTC by comment:5
keywords: | needsreview |
---|---|
resolution: | → invalid |
status: | open → closed |
Thank you, I figured.
Changed December 01, 2011 06:26PM UTC by comment:6
After some experimenting I found that the las version of jQuery to not cause this warning was jQuery 1.4.2
To be honest I'm not sure if it is of any help in tracking down the cause or who is generating it but what I did find is that any web page using jQuery 1.4.3 or later with firebug enabled will cause this message to appear. Disabling firebug or removing jQuery from the page will stop this from displaying.
Changed February 23, 2012 02:18PM UTC by comment:7
Replying to [comment:6 anonymous]:
After some experimenting I found that the las version of jQuery to not cause this warning was jQuery 1.4.2 To be honest I'm not sure if it is of any help in tracking down the cause or who is generating it but what I did find is that any web page using jQuery 1.4.3 or later with firebug enabled will cause this message to appear. Disabling firebug or removing jQuery from the page will stop this from displaying.
Just tick "Show JavaScript warnings" in the Console tab of Firebug, then you will see the warning for sure.
I'm using jQuery 1.7.1 in Firefox 10.0.2 + Firebug 1.9.1 on Windows 7 SP1 32bits.
Changed April 05, 2012 02:59PM UTC by comment:8
I also get this warning with Firefox's console (Ctrl+Shift+K).
Changed June 20, 2012 05:14PM UTC by comment:9
I also get a variation of this warning with Firefox 8:
"Use of getAttributeNode() is deprecated. Use getAttribute() instead."
(getAttributeNode, not getAttributeNodeNS)
Note1: this started to happen after I installed Firebug and other extensions of Firefox.
Note2: then I disabled all the newly installed extensions but it did not remove the warning even after many restart of Firefox; this warning was happening on the first tab of Firefox; then I created a brand new html page with exact same content, and without closing Firefox I opened it on another tab of Firefox and the warning did not display, this time. So I simply killed the incriminated tab. Then I opened another instance of Firefox to open the initial incriminated html page in the first tab of Firefox, and no problem anymore. Apparently a Firefox problem. Strange.
Changed July 20, 2012 09:21AM UTC by comment:10
Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead. in wordpress
Changed July 20, 2012 12:54PM UTC by comment:11
Please read the message above; we don't use getAttributeNodeNS
. Uninstall Firebug. See the if problem persists.
That's strange because we don't use getAttributeNodeNS anywhere. Perhaps it's actually firebug using it. We use getAttributeNode, but not in firefox.