DescriptionClone template contents in importNode
The template element has no children but contains content, the old importNode behavior only does classical child traversal so special case template elements to import its contents in addition to the normal traversal, like HTMLTemplateElement cloneNode implementation does. Refactor the children traversal importNode into a helper method for better readability and reuse.
BUG=341672
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167698
Patch Set 1 #Patch Set 2 : Also clone children as normal for template #
Messages
Total messages: 12 (0 generated)
|