Closed
Bug 295345
Opened 20 years ago
Closed 19 years ago
JavaScript: DOM (removeNode) troubles
Categories
(Core :: DOM: Core & HTML, defect)
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
Comment 2•20 years ago
|
||
I think you want: varname.parentNode.removeChild(varname);
Updated•20 years ago
|
Summary: JavaScript: DOM (removeNode) trubles → JavaScript: DOM (removeNode) troubles
Comment 3•19 years ago
|
||
Yep. There is no removeNode DOM method.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•