Skip to content

"The directionality of an attribute of an HTML" seems weird? #9146

@fantasai

Description

@fantasai

https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute

The directionality of an attribute of an HTML element, which is used when the text of that attribute is to be included in the rendering in some manner, is determined as per the first appropriate set of steps from the following list:​

If the attribute is a directionality-capable attribute and the element's dir attribute is in the auto state [run dir=auto aglo on their content].

Otherwise the directionality of the attribute is the same as the element's directionality.

The following attributes are directionality-capable attributes:​

  • abbr on th elements
  • alt on area, img, and input elements
  • content on meta elements, if the name attribute specifies a metadata name whose value is primarily...

The list of “directionality-capable attributes” seems to be a list of attributes that take human-readable content. Since we've gone through the trouble to define this list, shouldn't the application of the element's directionality be limited to this list? Like, saying that the type attribute's directionality is RTL in RTL documents seems weird and wrong...

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions