<?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>24003</bug_id>
          
          <creation_ts>2013-12-05 12:23:01 +0000</creation_ts>
          <short_desc>[Imports]:  Element removed flag&apos;s behavior is not clear if multiple HTMLLinkElement refers to the same import</short_desc>
          <delta_ts>2014-02-07 18:14:51 +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>FIXED</resolution>
          
          
          <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>20683</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gabor Krizsanits">gkrizsanits</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>morrita</cc>
    
    <cc>mrbkap</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97170</commentid>
    <comment_count>0</comment_count>
    <who name="Gabor Krizsanits">gkrizsanits</who>
    <bug_when>2013-12-05 12:23:01 +0000</bug_when>
    <thetext>It is not clear to me what should happen if multiple link elements in the same import tree refers to the same import, and only one of them is removed from the DOM tree for example. Shouldn&apos;t this flag be on the HTMLLinkElement instead of the import? Does it make sense to have such a flag on it at all?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99197</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-01-27 20:45:09 +0000</bug_when>
    <thetext>Hmmm, good question. Morrita-san?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99461</commentid>
    <comment_count>2</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-01-30 03:02:57 +0000</bug_when>
    <thetext>Right. The flag should be on &lt;link&gt; side.
And the flag could have better name then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99555</commentid>
    <comment_count>3</comment_count>
    <who name="Blake Kaplan">mrbkap</who>
    <bug_when>2014-01-31 23:18:35 +0000</bug_when>
    <thetext>(In reply to Morrita Hajime from comment #2)
&gt; Right. The flag should be on &lt;link&gt; side.
&gt; And the flag could have better name then.

What is the flag attempting to accomplish? If we put it on the &lt;link&gt;, then couldn&apos;t we simply check if the link is in a document (i.e. currentDocument is non-null)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99578</commentid>
    <comment_count>4</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-02 05:53:07 +0000</bug_when>
    <thetext>The flag is one-way. Once it is set it isn&apos;t set again even after
the node comes back into the document.

The intention of the behaviour is to clarify the one-shot characteristics
of imports. We might want to revise that policy if we have better model here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99582</commentid>
    <comment_count>5</comment_count>
    <who name="Gabor Krizsanits">gkrizsanits</who>
    <bug_when>2014-02-02 16:45:55 +0000</bug_when>
    <thetext>(In reply to Morrita Hajime from comment #4)
&gt; The intention of the behaviour is to clarify the one-shot characteristics
&gt; of imports. We might want to revise that policy if we have better model here.

I&apos;m not sure I fully understand this. So the idea is that even though we do not remove the import document from the cache/manager when the referring link element is removed from the tree, when we put it back it will not work? What&apos;s the purpose of this behaviour?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99623</commentid>
    <comment_count>6</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-03 18:16:25 +0000</bug_when>
    <thetext>(In reply to Gabor Krizsanits from comment #5)
&gt; (In reply to Morrita Hajime from comment #4)
&gt; &gt; The intention of the behaviour is to clarify the one-shot characteristics
&gt; &gt; of imports. We might want to revise that policy if we have better model here.
&gt; 
&gt; I&apos;m not sure I fully understand this. So the idea is that even though we do
&gt; not remove the import document from the cache/manager when the referring
&gt; link element is removed from the tree, when we put it back it will not work?
&gt; What&apos;s the purpose of this behaviour?

I&apos;m sorry to be unclear.
I don&apos;t think we should remove the document from the manager.
The manager thing was out of consideration when the section was written.

Thinking more about that, I&apos;m now inclining to get rid of the flag thing.
I need to think about that a bit more how to spec it out though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99875</commentid>
    <comment_count>7</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-06 00:54:43 +0000</bug_when>
    <thetext>Trying to clarify the point. Now the flag is gone.

https://github.com/w3c/webcomponents/commit/3170e1c8e7bd7133da4131c766aa27dc0cc42638
https://github.com/w3c/webcomponents/commit/3170e1c8e7bd7133da4131c766aa27dc0cc42638

Closing for now. Feel free to reopen or file another bug to continue conversation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99876</commentid>
    <comment_count>8</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-06 00:56:27 +0000</bug_when>
    <thetext>Wrong link :-(
https://github.com/w3c/webcomponents/commit/3170e1c8e7bd7133da4131c766aa27dc0cc42638
https://github.com/w3c/webcomponents/commit/0f3a97e9ada3619c2a5e5287f2f34258a3e39e85</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>