Created attachment 54716 [details] part one of the testcase On Mac 10.4/PPC with java version "1.5.0_19" The Mediawiki extension uses HTMLEditorKit to parse HTML - but this fails as the attached files demonstrate. The parser messes up the document structure, seeing a closing </head> tag where there is none. This causes the wiki's "search for the wiki's base-path" to fail.
Created attachment 54717 [details] second part of the testcase Running these on Linux (x86) with Java version "1.6.0_22" gives the expected output: Real positions - starttag: 6 enddtag: 118 found head start tag at position 6 handle simple tag: meta handle simple tag: link got link-tag in head with href /index.php?title=foobar found head end tag at position 118 result is »/« Running on Mac/PPC with java 1.5.0_19 results in: Real positions - starttag: 6 enddtag: 118 found head start tag at position 6 handle simple tag: meta found head end tag at position 36 handle simple tag: link result is »« (position 36 is directly after the meta-tag)
On 10.5 PPC, java version "1.5.0_30", result is Real positions - starttag: 6 enddtag: 118 found head start tag at position 6 handle simple tag: meta found head end tag at position 36 handle simple tag: link result is »« as well.
Closing a PowerPC-specific bug. Please reopen if it can be reproduced on Intel hardware too.