Last modified: 2011-03-13 18:05:20 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 9077 - <nowiki> around or through a &...; style character shows the character not its markup
<nowiki> around or through a &...; style character shows the character not it...
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-02-23 13:13 UTC by ais523
Modified: 2011-03-13 18:05 UTC (History)
1 user (show)

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


Description ais523 2007-02-23 13:13:51 UTC
In both HTML and Wikimarkup, &...; (with something replacing the dots) can be used to 
represent a character. However, <nowiki>&...;</nowiki> shows the character, not the 
markup (possibly undesirable behaviour). More surprisingly, 
<nowiki>&.</nowiki><nowiki>..;</nowiki> (with something replacing the dots again) also 
shows the character rather than its markup, which is contrary to both the expected 
behaviour of nowiki and the behaviour of HTML. The third example (and possibly the 
second) should render as "&...;", not the character, to behave as I expect.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-02-23 18:39:13 UTC
I was surprised by this too, but I assume it was intended.  Some may want to use
&mdash; or whatnot for readability in the edit window (although this is frowned
upon on enwiki), while still having the special character itself display, and
this concern is no less valid inside <nowiki>.  I'd be inclined to say to leave
it as it is, because both sides have some merit and the merit of not breaking
existing pages outweighs any difference.
Comment 2 ais523 2007-02-28 11:07:25 UTC
(In reply to comment #1)
> I was surprised by this too, but I assume it was intended. 
I'd agree with you about not breaking existing behaviour in the second case, but I 
can't think of a situation where someone would write the third case and intend the 
special character still to render (after all, <span>&.</span><span>..;</span> would 
show the markup rather than the character, so why should it be different with 
Comment 3 Andrew Garrett 2009-07-27 16:13:28 UTC
That's what it's there for.

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