# Spoiler with text on the same line as the tag no longer works

**URL:** <https://meta.discourse.org/t/spoiler-with-text-on-the-same-line-as-the-tag-no-longer-works/66456>\
**Category:** Product Support\
**Created:** [19 Julio, 2017 18:49 UTC](https://meta.discourse.org/t/spoiler-with-text-on-the-same-line-as-the-tag-no-longer-works/66456 "2017-07-19T18:49:24Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)\
**Post date:** [19 Julio, 2017 19:35 UTC](https://meta.discourse.org/t/spoiler-with-text-on-the-same-line-as-the-tag-no-longer-works/66456/10 "2017-07-19T19:35:13Z")

</div>

The validator will tell me that it’s invalid, and the spec makes it clear how it should render: the second paragraph should be bolded. This is what it means to be HTML; it’s specified behavior in response to invalid HTML.

More generally, the HTML parsing spec makes it clear that invalid HTML _isn’t_ “broken.” It’s “invalid,” but it has a specified rendering output, and Discourse is not following it for `<b>` tags. Despite that, Discourse _should_ follow that for `<b>` tags, and it should use the same behavior for BBCode.

---

_[View the full topic](https://meta.discourse.org/t/spoiler-with-text-on-the-same-line-as-the-tag-no-longer-works/66456)._
