Last modified: 2014-09-22 13:59:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70011, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68011 - mw.html escapes strip markers, which prevents them from being unstripped
mw.html escapes strip markers, which prevents them from being unstripped
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-14 22:54 UTC by Jackmcbarn
Modified: 2014-09-22 13:59 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jackmcbarn 2014-07-14 22:54:47 UTC
Given this as Module:Foo:
local p = {}

function p.main(frame)
	return mw.html.create('span'):css('color', frame.args[1]):wikitext('Hello world')
end

return p

The following code will not produce the expected result:
{{#invoke:Foo|main|<nowiki>#00ff00</nowiki>}}

The color won't work because mw.html's cssEncode escapes the strip markers, preventing the parser from unstripping them.
Comment 1 Gerrit Notification Bot 2014-09-22 03:00:44 UTC
Change 161900 had a related patch set uploaded by Jackmcbarn:
Don't escape the delete character

https://gerrit.wikimedia.org/r/161900
Comment 2 Gerrit Notification Bot 2014-09-22 13:35:31 UTC
Change 161900 merged by jenkins-bot:
Don't escape the delete character

https://gerrit.wikimedia.org/r/161900

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links