benschwarz / developers.whatwg.org

Used to create the contents of developers.whatwg.org
http://developers.whatwg.org/
198 stars 39 forks source link

When cloning nodes from a template tag should we use cloneNode or importNode? #101

Closed cganterh closed 8 years ago

cganterh commented 9 years ago

In the notes of mdn's cloneNode description it says:

To clone a node for appending to a different document, use Document.importNode() instead.

But in the example from http://developers.whatwg.org you use cloneNode. Is this an error?

benschwarz commented 8 years ago

Covered by the source material, not this repo.

domenic commented 8 years ago

Source is at https://github.com/whatwg/html with the latest output being visible at https://html.spec.whatwg.org/multipage/; if the errors still are present there feel free to file a bug of pull request!