BenEngbers / asciidoc

Automatically exported from code.google.com/p/asciidoc
GNU General Public License v2.0
0 stars 0 forks source link

Use <code> instead of <tt> for monospace in html5 backend #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The <tt> element has been deprecated in HTML 5 [1]. Since the HTML 5 backend is 
intended to output conforming HTML 5, the use of <tt> should be replaced by one 
of the inline literal elements recommended by the W3C. The most obvious choice 
is <code>.

"for computer code, consider the code element"

Here's the snippet from the AsciiDoc html5 backend that makes this switch:

[literal-inlinemacro]
<code>{passtext}</code>

[tags]
monospaced=<code{1? class="{1}"}>|</code>

[monospacedwords]
<code>{words}</code>

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#tt

Original issue reported on code.google.com by dan.j.allen on 21 Apr 2013 at 5:42

GoogleCodeExporter commented 8 years ago
Done in trunk back in June 2012: 
https://code.google.com/p/asciidoc/source/detail?r=99a647de4fba7aa135aea0a7a8e3f
0d30cf12fd5

Note to self: Must motivate myself to release 8.6.9 :-)

Original comment by srack...@gmail.com on 22 Apr 2013 at 5:07