- From: <bugzilla@jessica.w3.org>
- Date: Tue, 18 Nov 2014 14:57:55 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27359
Bug ID: 27359
Summary: [Shadow]: Need to define interaction with
directionality
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>
<script>
var div = document.querySelector("div");
var root = div.createShadowRoot();
root.innerHTML = "<p>aaa</p>";
</script>
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
"ltr".
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 the QA Contact for the bug.
Received on Tuesday, 18 November 2014 14:57:57 UTC