Closed Bug 245895 Opened 22 years ago Closed 22 years ago

crases reproducable while trying to copy style values from one dom element to another

Categories

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

x86
Windows 2000
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 245572

People

(Reporter: tormod, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 I wrote a small script that reproducable crashes Mozilla 7. It doeas not affect Mozilla 1.4 and 1.5 <html> <head> <title>poc -- proof of concept</title> </head> <body> <div id="test">moep</div> <script language="JavaScript1.2" type="text/javascript"> var xTempDiv = document.createElement('div'); // build new DIV in DOM tree var htmlDiv = document.getElementById('test'); // Getting the element of the "test" div // Copy all the styles from the div called "test" to the new one for (var i in htmlDiv.style) { if (typeof htmlDiv.style[i] == 'string') { xTempDiv.style[i] = htmlDiv.style[i]; } } document.write("All done! - not crashed"); </script> </body> </html> Reproducible: Always Steps to Reproduce: 1. open http://ibewegme.net/mozilla7crash.html in Mozilla 1.7 2. 3. Actual Results: It crashes everytime
This was fixed on trunk (for 1.8a2) and 1.7 branch yesterday. *** This bug has been marked as a duplicate of 245572 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Also crashes with latest nightly build
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.