-
Notifications
You must be signed in to change notification settings - Fork 11
Description
[source] (https://w3c.github.io/i18n-tests/results/the-dir-attribute-auto#dirauto) [en]
the-dir-attribute-069.html test stipulates:
When dir='auto', the direction is set according to the first strong character of the text, ignoring neutrals and numbers. If there is no strong character, as in this test, the direction defaults to LTR.
However, according to the spec, https://html.spec.whatwg.org/multipage/dom.html#the-dir-attribute, if no character with L, AL, or R directionality is found, "the directionality of the element is the same as the element's parent element's directionality."
Although the spec does include:
"Otherwise, if the element is a document element, the directionality of the element is 'ltr'."
However, in this test, the element is not a document element, so this clause doesn't seem to apply.
Am I misreading the HTML spec, or is there a particular passage in the spec which says the default should be LTR in this case?