≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1565

Bug #1565: "tt" element deprecated in HTML 5

Kind bug
Product wikitext
When Created 2010-06-10T07:25:43Z, updated 2010-06-11T13:03:43Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

As the <tt></tt> element is deprecated and in fact removed in HTML5, will need to make some changes to the Wikitext extension, seeing as it emits those tags...

Comments

  1. Greg Hurrell 2010-06-10T07:36:36Z

    See this document, "HTML5 differences from HTML4" for more info.

    <tt></tt> is listed under "The following elements are not in HTML5 because their effect is purely presentational and their function is better handled by CSS".

    So perhaps in the 2.0 release of Wikitext (which is explicitly targeted at Rails 3), we can emit something vaguely like:

    <p>Hello <span class="tt">foo</span>.</p>

    Instead of:

    <p>Hello <tt>foo</tt>.</p>

    For input:

    Hello `foo`.
  2. Greg Hurrell 2010-06-10T07:40:13Z

    Note that we will continue to support indefinitely the use of <tt></tt> in the input markup itself in order to handle the large body of Wikitext markup already "out there" which may use it.

    ie.

    Hello <tt>foo</tt> and `bar`!

    Would be translated to something like:

    <p>Hello <span class="tt">foo</span> and <span class="tt>bar</span>!</p>

    Would obviously need to provide some way of customizing the CSS class name as well.

  3. Greg Hurrell 2010-06-11T13:03:37Z

    Ok, this is taken care of now.

  4. Greg Hurrell 2010-06-11T13:03:43Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets