HTML5 Defaults

From MultilingualWeb-LT EC Project Wiki
Jump to: navigation, search

NOTE: This page is out of date. Please look at the data category overview table in the ITS 2.0 draft for latest information about defaults.

The following data categories have ITS defaults:

1 Translate

  • All elements are translatable (including <style>* and <script>*)
  • Only the following attributes are translatable:
    • abbr, alt, content, download, label, placeholder, title, aria-label.
    • aria-valuetext when the role attribute is progressbar, scrollbar, slider or spinbutton.
    • content in a <meta> element when the attribute name is keywords, or description.
    • value in a <input> element when the attribute type is button
    • style* and srcdoc* attributes.
    • onabort*, onblur*, oncanplay*, oncanplaythrough*, onchange*, onclick*, oncontextmenu*, ondblclick*, ondrag*, ondragend*, ondragenter*, ondragleave*, ondragover*, ondragstart*, ondrop*, ondurationchange*, onemptied*, onended*, onerror*, onfocus*, oninput*, oninvalid*, onkeydown*, onkeypress*, onkeyup*, onload*, onloadeddata*, onloadedmetadata*, onloadstart*, onmousedown*, onmousemove*, onmouseout*, onmouseover*, onmouseup*, onmousewheel*, onpause*, onplay*, onplaying*, onprogress*, onratechange*, onreadystatechange*, onreset*, onscroll*, onseeked*, onseeking*, onselect*, onshow*, onstalled*, onsubmit*, onsuspend*, ontimeupdate*, onvolumechange*, and onwaiting*.

Note: The elements or attributes with a star (*) next to their name have a content or a value that is not of type text. While the translatability property still applies to them, they must be processed by a secondary parser to detect which parts of their content or value are actually text to translate.

The translate attribute:

  • The attribute translate specifies whether or not the content of the element where it is declared should be translated or not. The state also applies to any attribute defined as 'translatable' for the given element.
  • The state is inherited by the element's children (and their translatable attributes) if those have only the default state.

2 Language Information

  • The lang attribute specifies the language identifier for the element where it is declared, as well as for its attribues.
  • The language identifier is inherited by the element's children (and their attributes) if those have no identifier defined.

3 Elements Within Text

  • All elements are not 'within text' and are not 'nested', except:
  • All phrasing elements (abbr, acronym, br, cite, code, dfn, kbd, q, samp, span, strong, var, b, em, big, hr, i, small, sub, sup, tt, del, ins, bdo, img, a, font, center, s, strike, u, isindex, area, audio, bdi, br, button, canvas, command, datalist, embed, iframe, input, keygen, label, map, mark, math, meter, noscript, object, output, progress, ruby, script, select, svg, textarea, time, video, wbr) which are 'within text'.

4 Id Value

  • The id attribute carries a unique identifier for the element where it is specified.