Re: Feedback for rb from html5j.org (was RE: HTML5 and ruby

From: Richard Ishida [mailto:ishida@w3.org]
> Here are some key questions:

> 2. do we need rb and rtc for complex ruby support, or is it 
> sufficient to rely on a mixture
> of recursive ruby markup plus a second <rt> element (depending on 
> the use case)?

Regarding complex ruby, then in order to use <rtc> cross browser -  in 
IE9, Firefox 9 and Safari 5 - the following mark-up is necessary:

<ruby>
   <rbc>
      <rb>foo</rb>
   </rbc>
   <rtc>
      <!--[if !ie]>--><ruby><!--<![endif]-->
      <rp>(</rp>
      <rt>bar</rt>
      <rp>)</rp>
   </rtc>
</ruby>

Explanation: Placing <ruby> inside cause IE9 to close the current 
<ruby> element. Whereas in Firefox and Webkit, then the <rtc> is closed 
as soon as the parser sees an <rp> or <rt> element.

I don't know how IE10 reacts - that woudl be interesting to hear. But 
the above shows that currently, then XHTML 1.1 Ruby does not work cross 
browser.
-- 
Leif Halvard Silli

Received on Sunday, 22 January 2012 12:41:07 UTC