# LazyYT + Spoiler alert conflict breaks page

**URL:** https://meta.discourse.org/t/lazyyt-spoiler-alert-conflict-breaks-page/38290
**Category:** Bug
**Created:** [21 januari 2016 om 07:20 UTC](https://meta.discourse.org/t/lazyyt-spoiler-alert-conflict-breaks-page/38290 "2016-01-21T07:20:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![uppfinnarn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uppfinnarn/32/121981_2.png) [@uppfinnarn](https://meta.discourse.org/u/uppfinnarn)
#### Post date: [21 januari 2016 om 07:20 UTC](https://meta.discourse.org/t/lazyyt-spoiler-alert-conflict-breaks-page/38290/1 "2016-01-21T07:20:15Z")

</div>

So, [this post](https://forum.kazamatsuri.org/t/key-mads-amvs/84/47), containing a YouTube video inside a spoiler tag, seems to just completely break the page’s script (“Uncaught TypeError: Cannot read property ‘setAttribute’ of null”).

Running v1.5.8 beta 8.

Since the broken script makes it difficult to tell, this is the post in question, near the bottom of the page.

 ![](https://global.discourse-cdn.com/meta/original/3X/c/4/c492fbdc3f8f4f97fa581a85df94228fe7f22d89.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 januari 2016 om 07:22 UTC](https://meta.discourse.org/t/lazyyt-spoiler-alert-conflict-breaks-page/38290/2 "2016-01-21T07:22:47Z")

</div>

Sure can we repro @techapj?

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [22 januari 2016 om 09:01 UTC](https://meta.discourse.org/t/lazyyt-spoiler-alert-conflict-breaks-page/38290/3 "2016-01-22T09:01:20Z")

</div>

Yes, I was able to repro this. Fixed via:

[https://github.com/discourse/discourse-spoiler-alert/commit/1e771f775a6c7e96a255f65ea800b2ec25741ea7](https://github.com/discourse/discourse-spoiler-alert/commit/1e771f775a6c7e96a255f65ea800b2ec25741ea7)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [22 januari 2016 om 09:01 UTC](https://meta.discourse.org/t/lazyyt-spoiler-alert-conflict-breaks-page/38290/4 "2016-01-22T09:01:24Z")

</div>


