Last modified: 2010-08-21 16:41:48 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 T26843, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24843 - JavaScript preview doesn't work with source tag
JavaScript preview doesn't work with source tag
Status: RESOLVED DUPLICATE of bug 24134
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.16.x
All All
: Normal normal (vote)
: ---
Assigned To: Michael Dale
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-18 06:32 UTC by Nux
Modified: 2010-08-21 16:41 UTC (History)
4 users (show)

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


Attachments

Description Nux 2010-08-18 06:32:44 UTC
Steps:
1. Enable JavaScript preview.
2. To an empty page add something in a source tag e.g.
<source lang="css">
li[id^="pt-prefswitch-"],
li[id^="pt-optin-"]
{display:none !important}
</source>
3. Run preview.

Expected:
Same preview as without JS.

Result:
The text seem to be unparsed.

This is because geshi extension produces CSS for the language inside the generated page and JS preview. You might say this is a bug in geshi, but geshi works fine without JS and there might be more cases like that with other extensions.
Comment 1 Niklas Laxström 2010-08-18 06:58:04 UTC
JS preview doesn't load everything it needs, like the CSS. I don't understand why the option to enable it is shown by default.
Comment 2 Derk-Jan Hartman 2010-08-18 10:41:23 UTC
For this to work, the common/preview.js script would need to be switched to use the api.php parse with "headitems" option I think.
Comment 3 db [inactive,noenotif] 2010-08-21 15:46:29 UTC

*** This bug has been marked as a duplicate of bug 24134 ***

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


Navigation
Links