Last modified: 2006-04-23 17:54:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5686 - Two single quotes in <code> parsed incorrectly
Two single quotes in <code> parsed incorrectly
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-22 17:04 UTC by Lupin
Modified: 2006-04-23 17:54 UTC (History)
0 users

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


Attachments

Description Lupin 2006-04-22 17:04:06 UTC
<code>var str1='';</code>
<code>var str2='foo';</code> 

generates the html

<code>var str1=<i>;</i></code> <code>var str2='foo';</code>

The first code block should have consecutive single quotes instead of
italicizing the semicolon.
Comment 1 Brion Vibber 2006-04-22 19:21:09 UTC
Use <nowiki> etc if you need to suppress wiki markup.
Comment 2 Lupin 2006-04-23 16:42:07 UTC
Whichever way you look at it, the current behaviour is inconsistent. In the
first line, the quotes give italics; in the second they do not. I don't see how
they can both be correct.

Moreover, the semicolon should not be italicized in the HTML from first line
since it is not enclosed in quotes.

If <code> does not switch off the single quote parsing, then the generated html
should be something like this:

<code>var str1=<i></i>;</code> <code>var str2=<i>foo</i>;</code>

But if <code> does turn off the special single quote behaviour (which seems more
useful to me) then the generated html should be something like this:

<code>var str1='';</code> <code>var str2='foo';</code>

Reopening.
Comment 3 Lupin 2006-04-23 17:54:50 UTC
Hm, that's not right. Do ignore.

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


Navigation
Links