]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix anchors wrapper.
authorXhmikosR <xhmikosr@gmail.com>
Tue, 20 Nov 2018 21:41:54 +0000 (23:41 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 20 Feb 2019 20:05:45 +0000 (22:05 +0200)
site/docs/4.3/assets/js/src/application.js

index a7f92e4563ba584bba2fb31dbde9445587fad00f..137297173266aa57a1316e5a567929ffafb3d941 100644 (file)
     // Wrap inner
     bootstrap.Util.makeArray(document.querySelectorAll('.bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5'))
       .forEach(function (hEl) {
-        var span = document.createElement('span')
-        span.classList.add('bd-content-title')
-        hEl.parentElement.insertBefore(span, hEl)
-        span.appendChild(hEl)
+        hEl.innerHTML = '<span class="bd-content-title">' + hEl.innerHTML + '</span>'
       })
 
     bsCustomFileInput.init()