User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Steps to reproduce:
Error not enough arguments
It should have made the second argument (deep Clone) optional as defined in DOM4
I think the backwards incompatible behavior of DOM4 is ok.
(In reply to Jake Verbaten from comment #0)
Btw, please don't use old versions of specs.
http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html is better.
Thank you for pointing out there is Editors draft!
Chrome handles the optional parameter in a wrong way. It defaults to false, but the spec
defaults to true (which is IMO the most obvious thing to do in this case).
Created attachment 570566 [details] [diff] [review]
Comment on attachment 570566 [details] [diff] [review]
There's actually lot's of arguments that have been marked as optional in DOM4. We should go through and fix them all. I'll file a separate bug for that.
Need to be careful with the default value of the optional parameters.
Also, need to review each case. DOM4, as any other spec, contains random insanity :)
Documented this change in https://developer.mozilla.org/en/DOM/document.importNode#section_2