w3c / mlreq

Mongolian Layout Requirements
https://www.w3.org/International/mlreq/
23 stars 12 forks source link

In-page search fails on ruby-annotated text #41

Open r12a opened 3 years ago

r12a commented 3 years ago

This issue is applicable to all languages that use ruby markup (Chinese, Japanese, Mongolian, Korean).

If text is marked up for ruby, using the interleaved markup approach currently required by the HTML spec, a browser's in-page search no longer recognises the text. For example, if you search for 東京 on a page that has this markup:

<ruby><rb>東<rt>とう<rb>京<rt>きょう</ruby>

the search will fail to locate the word.

Note that a tabular arrangement of markup, such as

<ruby><rb>東<rb>京<rt>とう<rt>きょう</ruby>

would work fine but, although it is parsed correctly, this tabular markup is not displayed correctly by Blink or Webkit currently, and therefore the HTML specification has obsoleted the rb and rtc elements.

For more details, see this GitHub issue, which is being used to track this gap.

r12a commented 3 years ago

The first comment in this issue contains text that will automatically appear in several gap-analysis documents in the Inline notes & annotations section, as a topic with the same title as this issue. Any edits made to that comment will be immediately available in the Editor's draft of the document. Proposals for changes or discussion of the content can be made in comments below this point.