Skip to content

q element produces incorrect quotation marks when language changes #224

Open
@r12a

Description

@r12a

This issue is common across all languages that use the q element.

When an Arabic or Persian page contains a quotation in another language, the quotation marks used around that quotation (and inside it for embedded quotes) should be the Arabic or Persian 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 Persian sentence surrounded by just <q>, the quotation marks will be correct:

یک «two ‹three›».

However, if lang="en" is added to the q tag, the result becomes:

یک “two ‘three’”.

For more details, see this GitHub issue, which is being used to track this gap. Please add any discussion there, and not to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc:arfagapThe first comment in this issue is read by the gap-analysis document.i:quotationsQuotations & citationsl:arbArabicl:pesPersianp:advanceds:arabArabic script (Used for arb + pes)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions