Last modified: 2006-06-08 20:12:10 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 T8239, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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> , <
dfn>.

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.


Navigation
Links