This profile is from a federated server and may be incomplete. Browse more on the original instance.
For example see this comment:...
troplin, 1 year ago I think Lemmy is correct here and the Mozilla docs only refer to the text content, not elements. It also mentions that < and > still have to be escaped to be displayed. The HTML spec https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element defines that the element contains „phrasing content“ which <span> is part of. It even explicitly mentions nesting <code> inside <pre>.
I think Lemmy is correct here and the Mozilla docs only refer to the text content, not elements. It also mentions that < and > still have to be escaped to be displayed.
The HTML spec https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element defines that the element contains „phrasing content“ which <span> is part of.
It even explicitly mentions nesting <code> inside <pre>.
Code blocks from Lemmy get mangled here on Kbin (kbin.social)
For example see this comment:...