Bug 208093

Summary: AX: <q> tag with nested <ruby> fails to follow standards of quotation for lang attribute
Product: WebKit Reporter: Dan Leonard <daniel>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Trivial CC: ahmad.saleem792, bfulgham, mmaxfield, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 13   
Hardware: All   
OS: All   
Attachments:
Description Flags
Comparison of WebKit and Gecko rendering of minimal working example in issue description
none
Minimal working example
none
WebKit ToT vs Chrome Canary 124 vs Firefox Nightly 125 none

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.