Page MenuHomePhabricator

TemplateStyles <style> tags are again wrapped in <p> tags
Open, Needs TriagePublic

Description

TemplateStyles <style> tags are again wrapped in <p> tags. This was previously solved in T186965. This happens both on pages where the <templatestyles> tag is directly in the page like https://sv.wikipedia.org/wiki/Estaci%C3%B3n_Central_(station) as well as on pages where the <templatestyles> tag is included via a template like https://sv.wikipedia.org/wiki/Ulf_Andersson_(boxare)

Note that the exact behaviour is different between them, and also different from the old issue. In Estación Central (station), there is an empty <span> tag inside the <p> tag, before the <style> tag. In Ulf Andersson (boxare), there is a <br> tag inside the <p> tag, before the <style> tag. The old issue solved in 2018 did not have any <span> or <br> tags inside the <p> tag.