[webkit-dev] DOM L1 Core tests analysis

Curt Arnold curt.arnold at mac.com
Wed Jul 27 23:23:24 PDT 2005


On Jul 25, 2005, at 11:00 PM, Maciej Stachowiak wrote:

...

> That sounds like a serious problem - is there any way to change the  
> tests to get a second document in a more portable way? Perhaps they  
> could use a frame to hold a second document. The spec says that  
> behavior of cloneNode() on a Document is implementation-dependent,  
> and no browser supports it, so it seems like a bad idea to rely on it.

Actually, I think that IE 6 actually does return a cloned document,  
Mozilla returns null and Opera throws an exception.  I've patched  
selfhtml.js so that it will attempt to do a brute-force copy of the  
host document if Document.cloneNode(true) doesn't work.  That allows  
IE 6, Mozilla, Opera and Safari to all run the same test, but they  
each take a slightly different path through the supporting test  
framework code depending on their responses.

I've submitted bug 4174 (http://bugzilla.opendarwin.org/show_bug.cgi? 
id=4174) with a patch and more notes.



More information about the webkit-dev mailing list