<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15444</bug_id>
          
          <creation_ts>2012-01-06 18:40:35 +0000</creation_ts>
          <short_desc>[Shadow]: Find a way for selection to work across shadow DOM subtrees</short_desc>
          <delta_ts>2015-05-27 02:37:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15480</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>hayato</cc>
    
    <cc>jonas</cc>
    
    <cc>rniwa</cc>
    
    <cc>sorvell</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62343</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-06 18:40:35 +0000</bug_when>
    <thetext>As specified in http://dvcs.w3.org/hg/webcomponents/rev/3fb19f98bead, window.getSelection() may never retrieve content from shadow DOM subtrees. Also, a user can&apos;t select content from both document tree and shadow DOM tree. We must fix that somehow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62350</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-06 20:29:06 +0000</bug_when>
    <thetext>Should we allow shadow DOM subtrees to specify whether they want to be treated as part of &quot;as-rendered&quot; structure or as a separate subtree?

Currently, for getSelection(), the WebKit implementation returns serialized value of the Selection object inside of a shadow DOM subtree, but node values are adjusted to avoid leaking shadow DOM nodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93017</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2013-09-05 01:50:34 +0000</bug_when>
    <thetext>This is an important UX concern. I think it&apos;s fine to limit access to selection data as defined by the spec. However, users expect to be able to select and copy text in a web page. To have that limited by invisible ShadowDOM boundaries would be very annoying. Ideally, this just always works and is separate from the encapsulation provided via ShadowDOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101959</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-03-06 00:11:06 +0000</bug_when>
    <thetext>One thing that Jonas suggested at the recent spec review is to make our selection language non-normative. It&apos;s a tough subject, so we shouldn&apos;t freeze this into the spec. The suggestion was to have the language along these lines:

&quot;Selection is not defined. Implementation should do their best to do what&apos;s best for them. Here&apos;s one possible, admittedly naive way: &lt;insert current normative wording, but make it informative&gt;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102129</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-03-10 06:09:43 +0000</bug_when>
    <thetext>(In reply to Dimitri Glazkov from comment #3)
&gt; One thing that Jonas suggested at the recent spec review is to make our
&gt; selection language non-normative. It&apos;s a tough subject, so we shouldn&apos;t
&gt; freeze this into the spec. The suggestion was to have the language along
&gt; these lines:
&gt; 
&gt; &quot;Selection is not defined. Implementation should do their best to do what&apos;s
&gt; best for them. Here&apos;s one possible, admittedly naive way: &lt;insert current
&gt; normative wording, but make it informative&gt;&quot;

Done at 
https://github.com/w3c/webcomponents/commit/25bd518701866866a26d9d7e3e50d90a45f62d93.

I&apos;ll keep this bug open until we have a better model, that is a tough issue for us.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102136</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-03-10 16:07:28 +0000</bug_when>
    <thetext>(In reply to Hayato Ito from comment #4)
&gt; (In reply to Dimitri Glazkov from comment #3)
&gt; &gt; One thing that Jonas suggested at the recent spec review is to make our
&gt; &gt; selection language non-normative. It&apos;s a tough subject, so we shouldn&apos;t
&gt; &gt; freeze this into the spec. The suggestion was to have the language along
&gt; &gt; these lines:
&gt; &gt; 
&gt; &gt; &quot;Selection is not defined. Implementation should do their best to do what&apos;s
&gt; &gt; best for them. Here&apos;s one possible, admittedly naive way: &lt;insert current
&gt; &gt; normative wording, but make it informative&gt;&quot;
&gt; 
&gt; Done at 
&gt; https://github.com/w3c/webcomponents/commit/
&gt; 25bd518701866866a26d9d7e3e50d90a45f62d93.
&gt; 
&gt; I&apos;ll keep this bug open until we have a better model, that is a tough issue
&gt; for us.

Maybe kill the 6.1.1 section title and remove the musty language from the non-normative parts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102194</commentid>
    <comment_count>6</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-03-11 07:45:41 +0000</bug_when>
    <thetext>(In reply to Dimitri Glazkov from comment #5)
&gt; Maybe kill the 6.1.1 section title and remove the musty language from the
&gt; non-normative parts?

Sure. Done at 
https://github.com/w3c/webcomponents/commit/0887618b6f247d1d59f37fbc474313014d81f227</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115100</commentid>
    <comment_count>7</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-11-19 05:06:12 +0000</bug_when>
    <thetext>*** Bug 25038 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119768</commentid>
    <comment_count>8</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-04-22 21:31:06 +0000</bug_when>
    <thetext>Status Update: This bug is still on our radar, but we couldn&apos;t spend much time on this issue in terms of the spec.

FYI. In Blink, we are working on supporting selection across shadow boundaries [1]. However, there is no update on API in the spec yet.

[1]: https://code.google.com/p/chromium/issues/detail?id=275851</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120485</commentid>
    <comment_count>9</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-05-27 02:37:48 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/79</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>