[Bug 22326] New: Make the dir attribute use isolation instead of embedding

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22326

            Bug ID: 22326
           Summary: Make the dir attribute use isolation instead of
                    embedding
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: aharon.lists.lanin@gmail.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

As discussed in http://www.w3.org/International/wiki/Html-bidi-isolation, the
dir attribute should start using isolation instead of embedding.

There is some additional discussion in
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18490, but further discussion on
isolation for the dir attribute should happen here.

The only change that appears to be necessary in the spec is in
http://www.w3.org/html/wg/drafts/html/master/rendering.html#bidirectional-text,
replacing all of the following:

=========
address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp, article,
aside, h1, h2, h3, h4, h5, h6, hgroup, main, nav, section, table, caption,
colgroup, col, thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu,
ol, ul, li {
  unicode-bidi: isolate;
}

:matches([dir=ltr i], [dir=rtl i], [dir=auto i]):not(address):not(blockquote
):not(center):not(div):not(figure):not(figcaption):not(footer):not(form
):not(header):not(hr):not(legend):not(listing):not(main):not(p):not(plaintext):not(pre
):not(summary):not(xmp):not(article):not(aside):not(h1):not(h2):not(h3):not(h4
):not(h5):not(h6):not(hgroup):not(nav):not(section):not(table):not(caption
):not(colgroup):not(col):not(thead):not(tbody):not(tfoot):not(tr):not(td
):not(th):not(dir):not(dd):not(dl):not(dt):not(menu):not(ol):not(ul):not(li) {
  unicode-bidi: embed;
}

bdi, bdi:matches([dir=ltr i], [dir=rtl i]),
output, output:matches([dir=ltr i], [dir=rtl i]),
[dir=auto i] {
  unicode-bidi: isolate;
}

bdo, bdo:matches([dir=ltr i], [dir=rtl i]) { unicode-bidi: bidi-override; }
bdo[dir=auto i] { unicode-bidi: isolate-override; }
=========

with the following:

=========
address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp, article,
aside, h1, h2, h3, h4, h5, h6, hgroup, main, nav, section, table, caption,
colgroup, col, thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu,
ol, ul, li,
[dir=ltr i], [dir=rtl i], [dir=auto i],
bdi, output  {
  unicode-bidi: isolate;
}

bdo, bdo[dir=ltr i], bdo[dir=rtl i] { unicode-bidi: bidi-override; }
bdo[dir=auto i] { unicode-bidi: isolate-override; }
=========

Please note that the above leaves <bdo dir="ltr|rtl"> with unicode-bidi:
bidi-override instead of the new unicode-bidi: isolate-override. We could move
them too to isolate-override, and it may well be cleaner, but this has not been
discussed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Tuesday, 11 June 2013 13:26:51 UTC