Last modified: 2006-04-23 17:54:50 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 T7686, the corresponding Phabricator task for complete and up-to-date bug report information.
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