What does the nodeName java script warning in Firefox mean?

rob November 6, 2011
Whatsapp Pinterest

Maybe too technical for this forum, but not found anything useful from Google. I get this java script warning in Firefox diagnostics: “nodeName attribute is deprecated”, nobody seems to know what it means.

    November 6, 2011 at 7:38 pm

    In other words it means: This is not gone yet.... but it's going to be, so stop using it.

  2. Jeff Fabish
    November 6, 2011 at 6:46 pm

    Hi Rob,

    In Javascript programming, all this means is that the object which the nodename is referencing is no long supported. A node just points to another tag (usually HTML) so that Javascript may edit it. You can read more about Javascript nodes here

    This error is caused by either bad programming or simply an old script file. 

    • Rob Hindle2008
      November 6, 2011 at 8:23 pm

      Thanks, - yes that makes sense, looking at the code I think:

      JS: document.survey.elements[V22][3].checked=false

      HTML: input type="radio" value="3" id="V22_3" name="V22" 

      The code, intended to unselect the radio button, should use getElementById to access the id: V22_3

  3. Rob Hindle2008
    November 6, 2011 at 4:07 pm

    The space between "java" and "script" is an error, this is a "javascript" question, despite the similar names "java" and "javascript" are two different languages.

    As for "if nobody seems to know anything about it, why bother .!".  It is only a "warning" message, not "error" so it could be disregarded, however warnings are often an early warning of program code that may become unsupported in a future version of the language giving developers time to make changes.  Even if it remains at "warning" level there's an educational aspect, for some reason the javascript interpreter authors consider some aspect of the program code to be "bad practise" and understanding why may be informative.     

  4. Mjevolve
    November 6, 2011 at 2:58 pm

    well, if nobody seems to know anything about it , 
    why bother .!  ;)

    do this , 
    uninstall Java from the Windows Control Panel and then run this tool - JavaRa  http://majorgeeks.com/JavaRA_d5982.html
    it removes old and redundant versions of the Java Runtime Environment (JRE) .now goto Java.com and download the latest version of Java and install it . restart the system and then again run the above tool once . to be sure to remove all invalid entries .now see ..it should work .!

    • Jeff Fabish
      November 6, 2011 at 7:15 pm

      As Rob stated, Java and Javascript are not the same thing. Removing JRE will not help.

      @58e3e08350d605733f295c07c57bc611:disqus I'm pretty sure he meant Javascript, the space isn't part of the error. Some people think that "Javascript" is two words, is all.

Ads by Google