Bug 208093 - AX: <q> tag with nested <ruby> fails to follow standards of quotation for lang attribute
Summary: AX: <q> tag with nested <ruby> fails to follow standards of quotation for lan...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 13
Hardware: All All
: P2 Trivial
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2020-02-22 11:56 PST by Dan Leonard
Modified: 2024-03-10 19:03 PDT (History)
6 users (show)

See Also:


Attachments
Comparison of WebKit and Gecko rendering of minimal working example in issue description (24.96 KB, image/png)
2020-02-22 11:56 PST, Dan Leonard
no flags Details
Minimal working example (210 bytes, application/xhtml+xml)
2020-02-22 12:01 PST, Dan Leonard
no flags Details
WebKit ToT vs Chrome Canary 124 vs Firefox Nightly 125 (278.63 KB, image/png)
2024-03-10 19:03 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Leonard 2020-02-22 11:56:50 PST
Created attachment 391465 [details]
Comparison of WebKit and Gecko rendering of minimal working example in issue description

Using <ruby> tag within a <q> tag causes the <q> to render as straight quotes (") rather than honoring the lang attribute of the <q> tag, which would usually involve CJK quotes.

Minimal working example:

<p>
	This displays correct CJK quotes:
	<q lang="ja-Kana">あなた は ばか</q>
	<br />
	This displays straight quotes:
	<q lang="ja-Kana">
		<ruby>
			あなた<rp>(</rp><rt>anata</rt><rp>)</rp>
			は<rp>(</rp><rt>wa</rt><rp>)</rp>
			ばか<rp>(</rp><rt>baka</rt><rp>)</rp>
		</ruby>
	</q>
</p>
Comment 1 Dan Leonard 2020-02-22 12:01:01 PST
Created attachment 391466 [details]
Minimal working example
Comment 2 Radar WebKit Bug Importer 2020-02-22 14:53:19 PST
<rdar://problem/59701057>
Comment 3 Ahmad Saleem 2024-03-10 19:03:48 PDT
Created attachment 470280 [details]
WebKit ToT vs Chrome Canary 124 vs Firefox Nightly 125

JSFiddle based on Comment 0 - https://jsfiddle.net/q572fm0p/show

Safari / WebKit differs from other browsers.