<?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>20703</bug_id>
          
          <creation_ts>2013-01-18 03:33:32 +0000</creation_ts>
          <short_desc>Make this xref (the-id-attribute) work.</short_desc>
          <delta_ts>2013-03-15 23:06:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-id-attribute</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>kennyluck</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81555</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-01-18 03:33:32 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-id-attribute
Multipage: http://www.whatwg.org/C#the-id-attribute
Complete: http://www.whatwg.org/c#the-id-attribute

Comment:
Make this xref (the-id-attribute) work.

Posted from: 221.223.50.90 by kennyluck@csail.mit.edu
User agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81556</commentid>
    <comment_count>1</comment_count>
      <attachid>1315</attachid>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2013-01-18 03:36:45 +0000</bug_when>
    <thetext>Created attachment 1315
dfn.js tweak

I don&apos;t claim that this is fully tested, but it might work.

Is there a public repository for dfn.js and such?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84373</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-13 23:26:40 +0000</bug_when>
    <thetext>By &quot;work&quot;, do you just mean &quot;be more aggressive about including an ID in the back-reference panel&quot;? It seems to work for me otherwise...

I&apos;ve added the back-reference part of your suggested patch. I couldn&apos;t work out why the other part would be needed (the ToC doesn&apos;t include &lt;dfn&gt;s, does it?).

There&apos;s no repo for this, it&apos;s just a file on my site currently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84403</commentid>
    <comment_count>3</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2013-03-14 11:58:20 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; By &quot;work&quot;, do you just mean &quot;be more aggressive about including an ID in the
&gt; back-reference panel&quot;? It seems to work for me otherwise...

What I am saying is that clicking neither &quot;id&quot; or &quot;the id attribute&quot; pop up the xref list.
 
&gt; I&apos;ve added the back-reference part of your suggested patch. I couldn&apos;t work
&gt; out why the other part would be needed (the ToC doesn&apos;t include &lt;dfn&gt;s, does
&gt; it?).

The Toc include links to &lt;dfn&gt;-like and so dfnGetCaption(a-link-in-toc) would be null because such links are not in any &lt;section&gt; (and such back-reference has no value anyway). By the way, check the console and it raises

  ReferenceError: parentNode is not defined

if you click on &quot;id&quot; as in &quot;the id attribute&quot;.

&gt; There&apos;s no repo for this, it&apos;s just a file on my site currently.

OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84448</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-14 22:51:59 +0000</bug_when>
    <thetext>The links in the ToC are in the &quot;Full table of contents&quot; section, which seems to work fine in the popup.

I fixed my dumb typo that was giving the error, sorry about that. Does it all work as you desire now?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84449</commentid>
    <comment_count>5</comment_count>
    <who name="Kang-Hao (Kenny) Lu">kennyluck</who>
    <bug_when>2013-03-14 22:56:12 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; The links in the ToC are in the &quot;Full table of contents&quot; section, which
&gt; seems to work fine in the popup.
&gt; 
&gt; I fixed my dumb typo that was giving the error, sorry about that. Does it
&gt; all work as you desire now?

No. OK, I see what&apos;s going on. It works fine in the Complete version, not the Multipage version now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84497</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2013-03-15 23:06:50 +0000</bug_when>
    <thetext>Got it. Fixed!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1315</attachid>
            <date>2013-01-18 03:36:45 +0000</date>
            <delta_ts>2013-01-18 03:36:45 +0000</delta_ts>
            <desc>dfn.js tweak</desc>
            <filename>dfn-for-the-id-attribute.patch</filename>
            <type>text/plain</type>
            <size>1249</size>
            <attacher name="Kang-Hao (Kenny) Lu">kennyluck</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2Rmbi5qcyBiL2Rmbi5qcwppbmRleCA3MWM3M2M4Li4xNzA4NjIyIDEwMDY0
NAotLS0gYS9kZm4uanMKKysrIGIvZGZuLmpzCkBAIC02MCwxMSArNjAsMTEgQEAgZnVuY3Rpb24g
ZGZuU2hvdyhldmVudCkgewogICAgIGlmIChub2RlKSB7CiAgICAgICB2YXIgcGFuZWwgPSBkb2N1
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yAgICAgICAgICAvLyB3aGVuLCBzYXksIHRoZSBp
ZCBpcyAidGhlLWlkLWF0dHJpYnV0ZSIuIElnbm9yZSBpdCBvZiBjb3Vyc2UuCisgICAgICAgICAg
aWYgKCFoZWFkZXIpCisgICAgICAgICAgICBjb250aW51ZTsKICAgICAgICAgICB2YXIgYSA9IGRv
Y3VtZW50LmNyZWF0ZUVsZW1lbnQoJ2EnKTsKICAgICAgICAgICBpZiAoIWxpbmsuaWQpCiAgICAg
ICAgICAgICBsaW5rLmlkID0gJ2RmblJldHVybkxpbmstJyArIGRmblVuaXF1ZUlkKys7Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>