Last modified: 2006-06-08 20:12:10 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 6239 - Add <kbd> and several other tags to HTML whitelist
Add <kbd> and several other tags to HTML whitelist
Status: RESOLVED DUPLICATE of bug 671
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-06-08 10:16 UTC by Ramir
Modified: 2006-06-08 20:12 UTC (History)
0 users

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


Description Ramir 2006-06-08 10:16:06 UTC
I tried marking some text in the [[:b:ru:Ruby|Russian wikibook on Ruby programming 
language]] with the <kbd> tag, but unlike usually with harmless html tags (<u>, <tt>, <code
>, etc.), it was processed (escaped) into text, appearing as "<kbd>text</kbd>" on the 
rendered page.

To solve the issue completely, the developers must learn more about the HTML and ensure that 
all valid tags for text markup are recognised as such by the wikitext rendering engine.
Comment 1 Rob Church 2006-06-08 12:05:44 UTC
First of all, be aware that wikitext is not HTML. An HTML element might *not*
have a corresponding representation in wikitext, and the HTML itself might not
be whitelisted in the parser/sanitiser.

Second of all, the developers do *not* need "to learn more about the HTML"
(sic). The tone of the latter half of the report is rather aggressive for no reason.

As to what's described, use <code> or <tt> for the same effect, or prefix the
lines with a single space. Whitelisting the tag itself might be viable, however.
Comment 2 Ramir 2006-06-08 13:11:02 UTC
NOTE: Some other useful tags are not accepted, either: <address>, <acronym>, <abbr> , <

In reply to:
>As to what's described, use <code> or <tt> for the same effect, or prefix the
>lines with a single space. Whitelisting the tag itself might be viable, however.

The appropriate use of various HTML tags is important for visual differentiation 
(through CSS) of semantically different blocks of text... for those who care. Since we 
hope to publish our books in the future, proper formatting is necessary. We _do_ need 
to separate <kbd> and <code>, rather than just use <tt> for both.

Usage of <span class="_something_"> tags is an option, but replacing them later with 
proper, tidier markup is laborious, because the closing </span> are all similar for 
the different blocks of text. Hence this request for improvement.
Comment 3 Rob Church 2006-06-08 13:12:26 UTC
That is why I proposed it as a temporary workaround, said, "we could add it" and
left the request open.
Comment 4 Ramir 2006-06-08 13:16:10 UTC
Many thanks :-)
Comment 5 Brion Vibber 2006-06-08 20:02:23 UTC
Probably should dupe this to 671.
Comment 6 Rob Church 2006-06-08 20:12:10 UTC

*** This bug has been marked as a duplicate of 671 ***

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