Last modified: 2013-08-06 00:36:52 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 T3038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1038 - Reflect XHTML trend from "b" and "i" towards "strong" and "em"
Reflect XHTML trend from "b" and "i" towards "strong" and "em"
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch
Depends on:
Blocks: html semantic-html
  Show dependency treegraph
Reported: 2004-12-08 13:34 UTC by Zigger
Modified: 2013-08-06 00:36 UTC (History)
1 user (show)

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

Parser.php.patch for HEAD (3.67 KB, patch)
2004-12-08 13:36 UTC, Zigger

Description Zigger 2004-12-08 13:34:54 UTC
The 1.4beta & later Parser.php doQuotes() function currently changes wiki "''"
and "'''" markup output from "em" and "strong" to "i" and "b".  

While this was presumably done to reduce the size of the output, the average
reduction would be small, and this is the reverse of the
anti-presentation trend reflected in the draft XHTML v2 spec.
Comment 1 Zigger 2004-12-08 13:36:23 UTC
Created attachment 166 [details]
Parser.php.patch for HEAD
Comment 2 Brion Vibber 2004-12-08 17:09:57 UTC
'' and ''' *are* presentational markup. They don't carry specific semantic meaning, 
but are used for many purposes. Italics ('') are used for emphasis, to mark foreign 
words, to mark titles of literary and artistic works, to set off captions, etc. Bold (''') 
is used for emphasis, to mark section titles typographically, etc. Use of <strong> 
and <em> for these is thus ABUSE of semantic markup. Semantic markup must 
have a specific meaning, or it is worthless. Telling everybody to turn all their <b>s 
into <strong>s and <i>s into <em>s is not only unhelpful, it's counterproductive 
and does great violence to the adoption of semantic markup.

We produce output in XHTML 1.0, which *does* include <b> and <i> elements. 
XHTML 1.0 will always include <b> and <i> elements. If some day we want to 
produce output in some version of XHTML that does not include <b> and <i> 
elements, then we'll see about more appropriate markup. Perhaps if <strong> and 
<em> are redefined to be non-semantic elements, they will be appropriate.
Comment 3 Zigger 2004-12-09 05:51:07 UTC
See bug 369 & bug 370

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