Feature request: add method to change tag name.
Input:
<ul id="fruits">
<li class="apple">Apple</li>
<li class="orange">Orange</li>
<li class="pear">Pear</li>
</ul>
Code:
$('ul').tag('article');
$('li').tag('section');
Output:
<article id="fruits">
<section class="apple">Apple</section>
<section class="orange">Orange</section>
<section class="pear">Pear</section>
</article>
I second this.
Maybe we could write it?
You can just modify the underlying objects.
$('ul').find('li').each((i, item) => (item.tagName = 'section'))
Most helpful comment
You can just modify the underlying objects.