<?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>22496</bug_id>
          
          <creation_ts>2013-06-27 20:13:09 +0000</creation_ts>
          <short_desc>&quot;A host-including inclusive ancestor is either a...&quot;</short_desc>
          <delta_ts>2013-08-20 19:19:16 +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>DOM</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>gphemsley</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89974</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-06-27 20:13:09 +0000</bug_when>
    <thetext>http://dom.spec.whatwg.org/#interface-documentfragment

[[
A host-including inclusive ancestor is either an inclusive ancestor or a host-including inclusive ancestor of an object&apos;s root&apos;s host, if any
]]

I think I know what this is trying to say (it&apos;s trying to be a transitive definition through &apos;host&apos;, I assume), but I think this could do with being rephrased to be clearer. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89999</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-06-28 10:01:27 +0000</bug_when>
    <thetext>Would it help if I repeat &quot;object&apos;s root&apos;s host&quot; (put it after inclusive ancestor)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92180</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-16 17:32:39 +0000</bug_when>
    <thetext>Even with that, I still have no idea what it&apos;s trying to say.

Replacing all the terms of art with &quot;A&quot; and &quot;B&quot; and so on, what&apos;s the sentence supposed to be? An A is either a B or an A of a C, if any&quot;? I don&apos;t know what that would mean either, for any definition of A, B, and C.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92183</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-16 17:52:02 +0000</bug_when>
    <thetext>An A is either a B of C or an A of C, if any.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92188</commentid>
    <comment_count>4</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-08-16 18:44:08 +0000</bug_when>
    <thetext>I think adding &quot;of an object&apos;s root&apos;s host&quot; after &quot;an inclusive ancestor&quot; might clarify things a little bit, but I&apos;m not clear on whether &quot;if any&quot; applies just to &quot;an A of C&quot; or if applies to the whole &quot;a B of C or an A of C&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92193</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-16 19:24:27 +0000</bug_when>
    <thetext>&gt; An A is either a B of C or an A of C, if any.

&quot;An A is ... an A&quot; doesn&apos;t make sense. I think this is why this sentence is causing me trouble.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92194</commentid>
    <comment_count>6</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-08-16 19:41:43 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; &gt; An A is either a B of C or an A of C, if any.
&gt; 
&gt; &quot;An A is ... an A&quot; doesn&apos;t make sense. I think this is why this sentence is
&gt; causing me trouble.

Yeah... as I mentioned on IRC, recursive definitions don&apos;t work very well in plain English. However, you don&apos;t seem to have a problem with the definition of &quot;root&quot;, which works the same way:

[[
The root of an object is itself, if its parent is null, or else it is the root of its parent.
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92195</commentid>
    <comment_count>7</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-08-16 19:45:04 +0000</bug_when>
    <thetext>Basically, this definition means (IIUC) that a &quot;host-including inclusive ancestor&quot; is like a regular &quot;inclusive ancestor&quot; except that when you climb up the tree to determine the ancestors, you also pop out of any &quot;host&quot; barrier you meet along the way and continue going up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92198</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-16 20:45:28 +0000</bug_when>
    <thetext>&gt; The root of an object is itself, if its parent is null, or else it is
&gt; the root of its parent.

That definition makes sense because it starts with &quot;The A of a B is&quot;. Essentially, it&apos;s of the form:

   Object.Root == Object.Parent ? Object.Parent.Root : Object;

What&apos;s the equivalent here? The current definition starts with &quot;The A is&quot;, but doesn&apos;t say the A of what, so there&apos;s nothing to refer to to recurse.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92208</commentid>
    <comment_count>9</comment_count>
    <who name="Gordon P. Hemsley">gphemsley</who>
    <bug_when>2013-08-16 23:37:41 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; What&apos;s the equivalent here? The current definition starts with &quot;The A is&quot;,
&gt; but doesn&apos;t say the A of what, so there&apos;s nothing to refer to to recurse.

I think it&apos;s more like:

def hostIncludingInclusiveAncestor(object):
  if object.Root.Host:
    return hostIncludingInclusiveAncestory(object.Root.Host)
  else:
    return object.Root</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92216</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-17 02:59:11 +0000</bug_when>
    <thetext>Then the definition should be:

&quot;The host-including inclusive ancestor of an object is the object&apos;s root&apos;s host&apos;s host-including inclusive ancestor if the object&apos;s root has a host, otherwise, it is the object&apos;s root.&quot;

...or some such.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92333</commentid>
    <comment_count>11</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-20 14:44:15 +0000</bug_when>
    <thetext>I think this is it: &quot;An object /A/ is a host-including inclusive ancestor of an object /B/ if either /A/ is an inclusive ancestor of /B/, or if /B/&apos;s root has an associated host and /A/ is a host-including inclusive ancestor of /B/&apos;s root&apos;s host.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92353</commentid>
    <comment_count>12</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-08-20 17:08:22 +0000</bug_when>
    <thetext>Yeah, that&apos;s way better. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92379</commentid>
    <comment_count>13</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-08-20 19:19:16 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/21f1fde39e1d00059fa9e6cfefaeb30e9c25d72d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>