Closed Bug 295345 Opened 20 years ago Closed 19 years ago

JavaScript: DOM (removeNode) troubles

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mozilla, Unassigned)

References

()

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

In the page http://dotorgc.org/test.html when you click "delete first row" - 
called javascript function wich try to remove First Row from the table using 
removeNode method for this. 
But I receive Error: varname.removeNode is not a function

Reproducible: Always

Steps to Reproduce:
1.create table (simple html or DOM + javascript)
2.give ID to one of "TR" tags
3.get link to this TR using document.getElementById
4.try to use "removeNode" DOM method

Actual Results:  
removing selected row

Expected Results:  
Error: varname.removeNode is not a function

this method is described in W3C and works both InternetExplorer and Opera
(In reply to comment #0)
> this method is described in W3C

Where does the W3C describe it, the Microsoft page says it's non-standard?

http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/removenode.asp
Assignee: nobody → general
Component: General → DOM: Core
Product: Firefox → Core
QA Contact: general → ian
Version: unspecified → Trunk
I think you want:
  varname.parentNode.removeChild(varname);
Summary: JavaScript: DOM (removeNode) trubles → JavaScript: DOM (removeNode) troubles
Yep.  There is no removeNode DOM method.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Component: DOM: Core → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.