W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2014

[Bug 27359] New: [Shadow]: Need to define interaction with directionality

From: <bugzilla@jessica.w3.org>
Date: Tue, 18 Nov 2014 14:57:55 +0000
To: public-webapps@w3.org
Message-ID: <bug-27359-2927@http.www.w3.org/Bugs/Public/>

            Bug ID: 27359
           Summary: [Shadow]: Need to define interaction with
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: bzbarsky@mit.edu
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-webapps@w3.org
            Blocks: 14978

Consider this testcase:

  <div dir="rtl"></div>
    var div = document.querySelector("div");
    var root = div.createShadowRoot();
    root.innerHTML = "<p>aaa</p>";

It seems like in at least Chrome and Firefox the directionality of the inner
div is "rtl".  But per HTML spec at
https://html.spec.whatwg.org/multipage/dom.html#the-directionality in this case
the <p> is a "root element" and hence its directionality is expected to be

It's not clear to me whether we want directionality to leak across the shadow
DOM boundary by default or not, by the way, and whether it should be explicitly
controllable by the component or not.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 18 November 2014 14:57:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:32 UTC