Topic on Extension talk:Lingo/Flow

Natrashafierce (talkcontribs)

I am using MediaWiki 1.22.

With the extension enabled, it somehow takes this code:

</div id="sectionblock1">

And turns it into this code:

</div>id="sectionblock1"&gt;

Which of course displays id="sectionblock1"> in the text of the page. I have such a div for every section on the page, and if there is a glossary term on the page, then it will display this code for EVERY section, no matter which section the glossary term is in.

If I delete the glossary term on the page, the page displays like it's supposed to.

If I disable Lingo, the page displays like it's supposed to.

Why does Lingo break the div coding in this way when it's enabled? The section divs are labeled like this because of the SectionHide extension, and Lingo does not break any other divs, so I'm guessing it's some kind of interaction. Is there anything I can do to fix this? Thanks.

F.trott (talkcontribs)

Your HTML is invalid, attributes are not defined for closing tags. So the HTML parser has to do some error handling which in this case means inserting the closing > at the appropriate spot. This in turn leads to the id=... being rendered as normal text. Nothing I can do about it, you'd have to change the PHP HTML parser.