This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18415 - [Shadow]: Focus navigation and distributed nodes
Summary: [Shadow]: Focus navigation and distributed nodes
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18428
  Show dependency treegraph
 
Reported: 2012-07-26 16:36 UTC by Dimitri Glazkov
Modified: 2012-10-03 21:43 UTC (History)
2 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2012-07-26 16:36:59 UTC
See https://bugs.webkit.org/show_bug.cgi?id=92050 for a detailed discussion.

The gist is that "tabindex" on distributed nodes indicates that the author is attempting to include them into the document navigation order, not shadow DOM subtree navigation order, but the heuristic for  understanding what to do with the shadow DOM subtree navigation order in this case is weak.
Comment 1 Hayato Ito 2012-07-27 02:13:43 UTC
I remembered that 'tabscope' was proposed to whatwg last year.
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2011-November/033775.html

That brings me one idea:

1. If a shadow host has 'tabscope' attribute, distributed nodes join the focus navigation of shadow DOM subtree.
2. Otherwise, distributed nodes join the focus navigation of outer document order.
Comment 2 Hayato Ito 2012-07-27 02:22:12 UTC
s/tabscope/tabindexscope/
Comment 3 Dimitri Glazkov 2012-07-27 22:38:19 UTC
Ooh, interesting. Let me dig into this.
Comment 4 Dimitri Glazkov 2012-09-04 22:41:04 UTC
Here's my proposal:

1) Change the spec to make distributed nodes participate in the outer navigation order.
2) Let other tools in HTML (such as tabscope) to deal with scoping of navigation order in other ways.

WDYT?
Comment 5 Hayato Ito 2012-09-04 23:39:35 UTC
Sounds reasonable for me. My proposal of #1 is same to that. Let's update the spec.

(In reply to comment #4)
> Here's my proposal:
> 
> 1) Change the spec to make distributed nodes participate in the outer
> navigation order.
> 2) Let other tools in HTML (such as tabscope) to deal with scoping of
> navigation order in other ways.
> 
> WDYT?
Comment 6 Olli Pettay 2012-09-05 07:07:16 UTC
What is a distributed node? ( Not definee in Shadow DOM draft )
Comment 7 Hayato Ito 2012-09-05 08:38:30 UTC
That are the children of a shadow host, distributed to the insertion points.

(In reply to comment #6)
> What is a distributed node? ( Not definee in Shadow DOM draft )
Comment 8 Dimitri Glazkov 2012-09-05 15:58:19 UTC
(In reply to comment #6)
> What is a distributed node? ( Not definee in Shadow DOM draft )

Yes, I was wrong in terminology. They are child nodes, distributed to insertion points.
Comment 9 Dimitri Glazkov 2012-10-03 21:43:41 UTC
http://dvcs.w3.org/hg/webcomponents/rev/213b8553fb0c