Thread:Project:Support desk/Possible (weird) bug with tags??

My setup:

Mediawiki: 1.23.5 PHP: 5.5.21 MYSQL:5.6.23

I'm seeing a weird bug with some custom tags that rely on parsing wikitext. The following example is a simplification (I'm just parsing a div tag) to highlight that the problem is related to the use of the parser:

Now let's use this tag:

inputa input a

The html corresponding to the first line:

input a

The second line has an extra pre tag around 'a':

input a.

In the rendering function, if we remove the div tags and just parse the input directly then everything is OK. Any idea what's going on here?