Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead

I'm working on a website, and using jQuery to display pop-ups.

When clicking on an article on the website, it should load a pop-up. The following code is used for that purpose:

var popup = jQuery(this).attr('rel'); 
jQuery('.window').append("http://www.perimetro.com.ar/-previa/"+popup+""); 
jQuery('.adentro').load(popup);

...but the pop-up is blocked and this error appears in the firebug console:

Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead

What's going on here?

like image 773
majito Avatar asked Nov 11 '11 14:11

majito


2 Answers

A ticket was opened with jQuery about the warning that is displayed in the console. The short of it is that the jQuery team doesn't believe it's them causing the issue, but the firebug console itself.

If your popup is blocked it's probably due to the way you're launching it, or the browser is blocking it from opening.

UPDATE: There are various questions and bug reports associated with this issue at various places; the comments and discussions taking place may help shed some light on the OP's question:

  1. https://bugzilla.mozilla.org/show_bug.cgi?id=661327
  2. https://bugzilla.mozilla.org/show_bug.cgi?id=690120
  3. getAttributeNode() and getAttributeNodeNS() warnings
  4. Firefox warning message
like image 153
Cᴏʀʏ Avatar answered Oct 19 '22 10:10

Cᴏʀʏ


This is neither a problem with FireFox, nor a fault in jQuery. It's a DOM interface issue, due to breaking changes in DOM level 4 API.

See this post for additional information:

  • getAttributeNode() and getAttributeNodeNS() warnings

Reference

  • DOM core specs on W3C
like image 5
Eliran Malka Avatar answered Oct 19 '22 10:10

Eliran Malka