Skip to content

Commit 49dbacb

Browse files
committed
Separate scripts that modify configuration properties, as their ordering constraints are unusual.
1 parent c89155b commit 49dbacb

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

test/unit/shady-content.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,16 +306,15 @@
306306

307307
<x-compose-lazy-no-dist><span>Child</span></x-compose-lazy-no-dist>
308308

309-
310309
<script>
311-
312310
if (!window.ShadyDOM) {
313311
ShadyDOM = {
314312
patch: function() {},
315313
flush: function() {}
316314
}
317315
}
318-
316+
</script>
317+
<script>
319318
function createPatchedDocumentFragment() {
320319
var frag = document.createDocumentFragment();
321320
return frag;

test/unit/shady-dynamic.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,17 +802,17 @@
802802
<x-outer>
803803
<button>click me</button>
804804
</x-outer>
805-
806805
<script>
807-
808-
'use strict';
809-
810806
if (!window.ShadyDOM) {
811807
ShadyDOM = {
812808
patch: function() {},
813809
flush: function() {}
814810
}
815811
}
812+
</script>
813+
<script>
814+
815+
'use strict';
816816

817817
function createEnabledElement(tag) {
818818
var e = document.createElement(tag);

0 commit comments

Comments
 (0)