20.02.2012, н╖ 9:39, Aryeh Gregor н·н▒н═н≥нён▒н°(н▒):
> Are IE or WebKit willing to change their default? Would Gecko or
> Opera prefer to default to true instead of matching IE/WebKit?
> Implementer feedback requested.
I'm certainly not in favor of changing the behavior that we had for ages, and that is consistent with DOM 3 Core (plus intuitive default argument handling).
It not clear to me why shallow clone is considered so much less useful. Searching for '"cloneNode(false)" filetype:js', I see lots of hits, suggesting that authors did find use for it.
Another argument for defaulting to false is that deep clone is an expensive operation, and should not be attempted without explicit request. Both semantically and performance-wise, cloneNode is quite different from importNode.
- WBR, Alexey Proskuryakov