-
Notifications
You must be signed in to change notification settings - Fork 3
q element produces incorrect quotation marks when language changes #22
Copy link
Copy link
Open
Labels
doc:cadoc:cyrlCyrillicCyrillicdoc:dedoc:frdoc:geordoc:grekdoc:hudoc:latnLatin scriptLatin scriptdoc:nlgapi:quotationsQuotations & citationsQuotations & citationsl:az-cyrlAzeri with Cyrillic scriptAzeri with Cyrillic scriptl:bgBulgarianBulgarianl:caCatalanCatalanl:deGermanGermanl:elGreekGreekl:frFrenchFrenchl:huHungarianHungarianl:kaGeorgianGeorgianl:nlDutchDutchl:noNorwegianNorwegianl:ruRussianRussianl:srSerbianSerbianl:ukUkrainianUkrainianl:uzUzbekUzbekp:advanceds:cyrlCyrillic scriptCyrillic scripts:georGeorgian (script)Georgian (script)s:grekGreek (script)Greek (script)s:latnLatin (script)Latin (script)x:alreqx:blinkx:cans-iu-crx:cherx:clreqx:cssx:css-contentx:geckox:georx:grekx:jpanx:latn-cax:latn-dex:latn-frx:latn-hux:latn-nlx:osge-osax:webkit
Metadata
Metadata
Assignees
Labels
doc:cadoc:cyrlCyrillicCyrillicdoc:dedoc:frdoc:geordoc:grekdoc:hudoc:latnLatin scriptLatin scriptdoc:nlgapi:quotationsQuotations & citationsQuotations & citationsl:az-cyrlAzeri with Cyrillic scriptAzeri with Cyrillic scriptl:bgBulgarianBulgarianl:caCatalanCatalanl:deGermanGermanl:elGreekGreekl:frFrenchFrenchl:huHungarianHungarianl:kaGeorgianGeorgianl:nlDutchDutchl:noNorwegianNorwegianl:ruRussianRussianl:srSerbianSerbianl:ukUkrainianUkrainianl:uzUzbekUzbekp:advanceds:cyrlCyrillic scriptCyrillic scripts:georGeorgian (script)Georgian (script)s:grekGreek (script)Greek (script)s:latnLatin (script)Latin (script)x:alreqx:blinkx:cans-iu-crx:cherx:clreqx:cssx:css-contentx:geckox:georx:grekx:jpanx:latn-cax:latn-dex:latn-frx:latn-hux:latn-nlx:osge-osax:webkit
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Bug fix in progress
This issue is common across all languages that use the
qelement.When an English page contains a quotation in another language, the quotation marks used around that quotation (and inside it for embedded quotes) should be the English ones – not those of the language of the quotation. The same applies for other languages.
The GAP
Currently, if the language of the quotation is declared on the
qtag in HTML and that tag has alangattribute, browsers instead set the quotation marks based on the language of the quote.Quotations work fine in a sentence that is all in the same language. For example, the markup for this Georgian text:
<span lang="ka">ერთი <q>ორი <q>სამი</q></q></span>will result in:
ერთი „ორი «სამი»“
However, if the quote is in English and
lang="en"is added to the firstqtag, the result becomes:ერთი “two ‘three’”
whereas it should be:
ერთი „two «three»“
This is the case for Gecko, Blink, and WebKit.
Tests & results
Interactive test, When an embedded quote is in a different language, the quotation marks should be those of the main body, even if the language of the quote is declared using a lang attribute.
i18n test suite, Multilingual nesting.
Action taken
This incorrect behaviour was initially dictated by the HTML specification. issue 3636 was raised to change the spec. In the end the entire section was removed from the HTML spec, and HTML now relies on CSS for this behaviour.
css-content says that , however it is non-normative text.
Issue 5478 Open, requests that this be made normative, and has been agreed by the CSS WG.
Browser bug reports:
Gecko • Blink • Webkit
Outcomes
tbd
Priority
Marking this as advanced because it's possible, though not always as convenient, to use Unicode characters instead of the
qelement.