Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Template element clone node #371

Merged
merged 2 commits into from
Feb 3, 2014

Conversation

arv
Copy link
Contributor

@arv arv commented Feb 3, 2014

Fix issues with cloneNode and importNode for HTMLTemplateElement

Refactor the code to share the implementation.
#367


function cloneNode(node, deep, opt_doc) {
var clone;
if (opt_doc)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like opt_doc is always defined, since both cloneNode and importNode pass one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intent was to not pass a doc for cloneNode. Let me fix that.

@arv
Copy link
Contributor Author

arv commented Feb 3, 2014

Done. PTAL

@dfreedm
Copy link
Contributor

dfreedm commented Feb 3, 2014

LGTM

dfreedm added a commit that referenced this pull request Feb 3, 2014
@dfreedm dfreedm merged commit 308a7c2 into googlearchive:master Feb 3, 2014
@arv arv deleted the template-element-clone-node branch February 4, 2014 21:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants