Last modified: 2011-03-13 18:05:20 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 T11077, the corresponding Phabricator task for complete and up-to-date bug report information.
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...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.10.x
All All
: Lowest 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: 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: ---


Attachments

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 
<nowiki>?)
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.


Navigation
Links