[i18n-drafts] [tests/repo/results/css-ruby] Is the-dir-attribute-069.html correct? (#235)

tphamg has just created a new issue for https://github.com/w3c/i18n-drafts:

== [tests/repo/results/css-ruby]  Is the-dir-attribute-069.html correct? ==
[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?

Please view or discuss this issue at https://github.com/w3c/i18n-drafts/issues/235 using your GitHub account

Received on Monday, 6 January 2020 23:13:09 UTC