<?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>28185</bug_id>
          
          <creation_ts>2015-03-10 08:15:18 +0000</creation_ts>
          <short_desc>[Shadow]: TextNode should have getDestinationInsertionPoints()</short_desc>
          <delta_ts>2015-03-10 08:37:39 +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>DUPLICATE</resolution>
          <dup_id>28069</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hayato Ito">hayato</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118482</commentid>
    <comment_count>0</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-03-10 08:15:18 +0000</bug_when>
    <thetext>In the current spec, only Element has getDestinationInsetionPoints:


http://w3c.github.io/webcomponents/spec/shadow/#widl-Element-getDestinationInsertionPoints-NodeList

partial interface Element {
    ShadowRoot createShadowRoot ();
    NodeList   getDestinationInsertionPoints ();
    readonly    attribute ShadowRoot? shadowRoot;
};


However, because not only Element, but also TextNode can be distributed, getDestinationInsertionPoints should be defined also in TextNode.


One idea is to let Node have getDestinationInsertionPoints rather than Element:

Idea A::

partial interface Node {
    NodeList   getDestinationInsertionPoints ();
};


Another idea is to let TextNode have getDestinationInsertionPoints, in addition to Element:


Idea B::

partial interface Element {
    NodeList   getDestinationInsertionPoints ();
};

partial interface TextNode {
    NodeList   getDestinationInsertionPoints ();
};



Which should we prefer?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118483</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-03-10 08:37:39 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 28069 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>