File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1481,8 +1481,9 @@ var htmx = (function() {
14811481 // @ts -ignore if elt is template content will be valid so use as inner content
14821482 fragment = oobElementClone . content || asParentNode ( oobElementClone ) // if this is not an inline swap, we use the content of the node, not the node itself
14831483 }
1484- // outerHTMLStrip swapStyle will strip wrapping tag above but do outerHTML swap of inner contents
1485- swapStyle = swapStyle . replace ( 'Strip' , '' )
1484+ if ( swapStyle === 'outerHTMLStrip' ) {
1485+ swapStyle = 'outerHTML' // outerHTMLStrip will strip wrapping tag above but do outerHTML swap of inner contents
1486+ }
14861487
14871488 const beforeSwapDetails = { shouldSwap : true , target, fragment }
14881489 if ( ! triggerEvent ( target , 'htmx:oobBeforeSwap' , beforeSwapDetails ) ) return
You can’t perform that action at this time.
0 commit comments