html() accepts string only
Sebastian-Fitzner opened this issue · comments
Sebastian Fitzner commented
The html()
method accepts a string only. But it would be better when it also accepts a DOM element as well. For now you have to use outerHTML
which looks not so nice:
Current Implementation
const $clone = this.$el.clone(true);
this.$otherSelector.html($clone[0].outerHTML)
Improvement
const $clone = this.$el.clone(true);
this.$otherSelector.html($clone[0])
Andy Gutsche commented
v2.3.0 adds support for VeamsQuery object and DOM node as parameter