2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

fix unit tests

This commit is contained in:
Johann-S
2018-08-19 16:37:37 +02:00
parent 82890e9bcf
commit 9c4c72e31e
6 changed files with 17 additions and 46 deletions
+10
View File
@@ -54,6 +54,8 @@
<div class="page-header js-page-header">
<h1>Affix <small>Bootstrap Visual Test</small></h1>
<div id="affixTarget">Affix target with XSS</div>
</div>
<div class="col-md-3">
@@ -277,6 +279,14 @@
<!-- JavaScript Test -->
<script>
$(function () {
try {
$('#affixTarget').bootstrapAffix({
target: '<img src=1 onerror=\'alert(0)\'>'
})
} catch (e) {
console.error(e)
}
$('.js-affixed-element-top').affix({
offset: {
top: $('.js-page-header').outerHeight(true) - 10