The self-hosted W3C DOM test suite had an dependency on the implementation-specific behavior of Document.cloneNode(true) which causes about 20 tests to report erroneous failures. See last paragraph of http://www.opendarwin.org/pipermail/webkit-dev/2005-July/000329.html This has been reported and fixed in the W3C CVS as http://www.w3.org/Bugs/Public/show_bug.cgi? id=1821. The resolution was to add fallback code that would attempt to do a brute force copy of the document. The resulting code will work properly with IE 6, Mozilla, Opera and Safari. The patch adds the new code to the various copies of selfhtml.js in the layout tests (and updates level2/events/selfhtml.js which was using an earlier copy). The Webkit modifications to the W3C original are preserved and identified as required by the W3C license. The patch includes changes to -expected.txt files. Running run-webkit-tests was observed to result in a broken pipe on some runs, however the failing test was inconsistent and did not occur last time run.
Created attachment 3133 [details] Patch file with new selfhtml.js files and -expected.txt files.
committed this to our tree