Please look at some examples which are "corrected" even if they are valid as XHTML Ruby. They expected outputs are based on actual results on the Internet Explorer. I don't know details of HTML5 Ruby spec, but, I think we should not ignore those cases because there are too many ruby markups which is written only for IE, on the Web.
By the way, XHTML Ruby markups (<ruby><rb>...</rb><rp>(</rp><rt>...</rt><rp>)</rp></ruby> and complex ruby) should be in invalid cases if Mozilla supports just only HTML5 Ruby.
This is a testcase for my XHTML Ruby Support addon. There are some examples of "broken" markups. www.cozmixng. org/repos/ piro/rubysuppor t/trunk/ tests/general. html
http://
Input: base<rb> </rb><rt> rubytext< /rt></ruby> <rb></rb> base<rt> </rt>base2< /ruby> base<rb> base2</ rb><rt> </rt>base3< /ruby> base<rb> base2</ rb><rt> rubytext< /rt>base3< /ruby> <rb>base< /rb>base2< rt></rt> base3</ ruby> <rb>base< /rb>base2< rt>rubytext< /rt>base3< /ruby> base<rb> <rt>rubytextrub ytextrubytext< /rt>base2< /ruby> <rb>base< /rb><rt> rubytext< /rt><rb> base2</ rb><rt> rubytext2rubyte xt2rubytext2< /rt></ruby> base</ruby> <ruby>< rb>base2< /rb></ruby> base3 base<rb> </rb><rt> rubytext< /rt></ruby> <rb></rb> base<rt> </rt>rubytext< /ruby> <rb>base< /rb><rt> rubytext< /rt><rb> base</rb> <rt>rubytext< /rt></ruby>
<p>1.<ruby>
<p>2.<ruby>
<p>3.<ruby>
<p>4.<ruby>
<p>5.<ruby>
<p>6.<ruby>
<p>7.<ruby>
<p>8.<ruby>
<p>9.<ruby>
<p>10.
<ruby>
<ruby>
<ruby>
</p>
Expected output: <rb>base< /rb><rt> rubytext< /rt></ruby> <rb>basebase2< /rb><rt> rubytext< /rt></ruby> base3 <rb>basebase2< /rb><rt> rubytext< /rt></ruby> base3 <rb>base< /rb><rt> rubytextrubytex trubytext< /rt></ruby> base2 <rb>base< /rb><rt> rubytext< /rt></ruby> <ruby>< rb>base2< /rb><rt> rubytext2rubyte xt2rubytext2< /rt></ruby> <rb>base< /rb><rt> rubytext< /rt></ruby> <rb>baserubytex t</rb>< /ruby> <rb>base< /rb><rt> rubytext< /rt></ruby> <ruby>< rb>base< /rb><rt> rubytext< /rt></ruby>
<p>1.<ruby>
<p>2.basebase2
<p>3.basebase2base3
<p>4.<ruby>
<p>5.basebase2base3
<p>6.<ruby>
<p>7.<ruby>
<p>8.<ruby>
<p>9.basebase2base3
<p>10.
<ruby>
<ruby>
<ruby>
</p>
Please look at some examples which are "corrected" even if they are valid as XHTML Ruby. They expected outputs are based on actual results on the Internet Explorer. I don't know details of HTML5 Ruby spec, but, I think we should not ignore those cases because there are too many ruby markups which is written only for IE, on the Web.
By the way, XHTML Ruby markups (<ruby> <rb>... </rb><rp> (</rp>< rt>...< /rt><rp> )</rp>< /ruby> and complex ruby) should be in invalid cases if Mozilla supports just only HTML5 Ruby.