[jlreq] q element produces incorrect quotation marks when language changes (#174)

r12a has just created a new issue for https://github.com/w3c/jlreq:

== q element produces incorrect quotation marks when language changes ==
When a Japanese page contains a quotation in another language, the quotation marks used around that quotation (and inside it for embedded quotes) should be the Japanese ones – not those of the language of the quotation.

Currently, if the language of the quotation is declared on the `q` tag in HTML using the `lang` attribute, browsers instead set the quotation marks based on the language of the quote.

For example, if English text is quoted in a Japanese sentence surrounded by just `<q>`, the quotation marks will be correct:

<span lang=“ka”>いち 「two 『three』」</span>

However, if `lang=“en”` is added to the `q` tag, the result becomes:

<span lang=“el”>いち  “two ‘three’”</span>

Here is <a href="https://w3c.github.io/i18n-tests/exploratory/vanilla/?text=%3Cdiv%3E%E3%81%84%E3%81%A1%20%3Cq%3Etwo%20%3Cq%3Ethree%3C%2Fq%3E%3C%2Fq%3E%3C%2Fdiv%3E%0A%3Cdiv%3E%E3%81%84%E3%81%A1%20%3Cq%20lang%3D%22en%22%3Etwo%20%3Cq%3Ethree%3C%2Fq%3E%3C%2Fq%3E%3C%2Fdiv%3E%0A&lang=ja&fontSize=45&width=560&height=159">a test</a>.    There are also tests and results [in the i18n test suite](https://w3c.github.io/i18n-tests/results/the-q-element.html#ml_nesting).

This incorrect behaviour is currently dictated by the HTML specification, so <a href="https://github.com/whatwg/html/issues/3636#issuecomment-384340053">an issue</a> has been raised to change the spec.

Please view or discuss this issue at https://github.com/w3c/jlreq/issues/174 using your GitHub account

Received on Monday, 3 February 2020 13:08:54 UTC