Author: djr013
Description:
Overlapping (not nesting) <poem> tags with <noinclude> results in one or both of the two breaking. By overlapping, I mean situations such as <noinclude><poem></noinclude></poem>. While looking at this, it might appear to be an instance of invalid HTML, it ain't HTML. Apologies if I am mistaken and such overlaps are strictly disallowed in these tags.
The expected result would be that <noinclude> and its closing tag would take precedence over any formatting tags, in the above example stripping the transcluded text of the first <poem> and leaving the closing tag for later interpretation within the page it is transcluded into.
See URL for demonstration of issue. This causes problems most prominently on Wikisource which has heavy content transclusion use and where multi-page poems are fairly common.
Version: unspecified
Severity: minor
URL: https://test.wikipedia.org/wiki/Multipage_poem_test