Skip to content

Commit

Permalink
do attributes as well
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelWest22 authored Dec 9, 2024
1 parent acdd51b commit a428ac0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/htmx-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ var htmx = (function() {
if (!el.content) {
const template = el.ownerDocument.createElement('template')
el.parentNode.insertBefore(template, el)
cloneAttributes(template,el)
el.parentNode.removeChild(el)
while ((child = el.firstChild)) {
template.content.appendChild(child)
Expand Down

0 comments on commit a428ac0

Please sign in to comment.