Last modified: 2014-06-20 17:44:29 UTC
{{{{echo|echo}}|foo}} data-mw looks good, but the string 'foo' is missing in the span for some reason. <span about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"{{echo|echo}}"},"params":{"1":{"wt":"foo"}},"i":0}}]}'></span>
This seems to be specific to using the wt2html form, for example at http://parsoid-lb.eqiad.wikimedia.org/_wikitext/. Using parse.js or retrieving an existing page at http://parsoid-lb.eqiad.wikimedia.org/mediawikiwiki/User%3AGWicke%2FTest%2Ftpl?oldid=1040353 works fine. The other difference is span wrapping in the broken version vs. p wrapping in the working one.
What's happening here is that we clear the default page name when using that form without specifying a page name (I guess to avoid Main_Page showing up the meta headers in the output) but during the parse, template fetches return invalidtitle. I guess we should remove that and always parse in the context of a page.
Change 140865 had a related patch set uploaded by Arlolra: Always parse in the context of a page https://gerrit.wikimedia.org/r/140865
Change 140865 merged by jenkins-bot: Only set title on preprocessor requests if present https://gerrit.wikimedia.org/r/140865