Closed Bug 296101 Opened 20 years ago Closed 20 years ago

cloneNode loses textContent property

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 276880

People

(Reporter: ces.fci.junk, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

<div id="mydiv">Test</div>
<script type="text/javascript"><!--
document.open();
try {
    var clone = document.getElementById('mydiv').cloneNode(true);
	document.write(clone.textContent);
} catch(e) { document.write(e); }
document.close();
--></script>

Reproducible: Always

Steps to Reproduce:
1.attempt to read the textContent property of a cloned node.
Actual Results:  
Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIDOM3Node.textContent]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location:
"JS frame :: ... ::  :: line 6" data: no


may be in the same vein as bug 230307 but appears to be different enough.

*** This bug has been marked as a duplicate of 276880 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
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.