[rfc-i] <tt> vs HTML5

Julian Reschke julian.reschke at gmx.de
Mon Feb 22 14:15:04 PST 2016


On 2016-02-22 23:09, Paul Hoffman wrote:
> On 22 Feb 2016, at 9:55, Joe Hildebrand (jhildebr) wrote:
>
>> <sourcecode> can also be used inline in a bunch of places.
>>
>> I agree that if <tt> remains in v3 XML, the HTML doc has to change.
>
> It seems like the easiest change that will still encompass most use
> cases is to leave <tt> as-is in the v3 spec and to change the HTML
> formatting spec to say that <tt> in the XML is rendered as <code> in the
> HTML.

Hm, from 
<https://www.w3.org/TR/html5/text-level-semantics.html#the-code-element>:

> The code element represents a fragment of computer code. This could be an XML element name, a file name, a computer program, or any other string that a computer would recognize.

Does this cover all cases we need?

IMHO, the simplest possible fix still is to use <span> with appropriate CSS.

Best regards, Julian



More information about the rfc-interest mailing list