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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>12971</bug_id>
          
          <creation_ts>2007-03-05 11:42:27 -0800</creation_ts>
          <short_desc>An ID attribute declared in a DTD internal subset is not treated as such</short_desc>
          <delta_ts>2022-08-02 08:19:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>18605</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bedney</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>cshu</cc>
    
    <cc>jasneet</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
    
    <cc>webdev</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20358</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-03-05 11:42:27 -0800</bug_when>
    <thetext>In a plain XML document with the following DTD, CODE should work as an ID attribute, but it doesn&apos;t.

&lt;!DOCTYPE ROOT [
  &lt;!ELEMENT CHILD2 (#PCDATA|GCHILD)*&gt;
  &lt;!ATTLIST CHILD2 attr1 CDATA #IMPLIED
                   CODE ID #REQUIRED&gt;
]&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20359</commentid>
    <comment_count>1</comment_count>
      <attachid>13480</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-03-05 11:43:01 -0800</bug_when>
    <thetext>Created attachment 13480
test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20371</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2007-03-05 15:12:24 -0800</bug_when>
    <thetext>I am not sure if we have a bug for dbaron&apos;s tests, but this issue is also illustrated in http://dbaron.org/css/test/xmlid from his test suite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283211</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-09-22 13:36:36 -0700</bug_when>
    <thetext>*** Bug 18605 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>301378</commentid>
    <comment_count>4</comment_count>
    <who name="William J. Edney">bedney</who>
    <bug_when>2010-10-28 15:28:08 -0700</bug_when>
    <thetext>I can also confirm this.

Major pain when trying to use getElementById() with arbitrary XML.

Cheers,

- Bill</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503125</commentid>
    <comment_count>5</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:04:13 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1888358</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-08-02 04:14:22 -0700</bug_when>
    <thetext>I am not sure on web-spec direction but in attached test case, all browsers (Chrome Canary 106, Firefox Nightly 105 and Safari 15.6) are showing &apos;FAILURE&apos;, while similarly in test case from Comment 02, there is no color grading on the test case and all browsers are matching with each other.

Can someone mark this bug accordingly? Whether it would be &quot;RESOLVED WONTFIX&quot; due to web-spec change or it would be RESOLVED LATER or RESOLVED CONFIGURATION CHANGED. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>13480</attachid>
            <date>2007-03-05 11:43:01 -0800</date>
            <delta_ts>2007-03-05 11:43:01 -0800</delta_ts>
            <desc>test case</desc>
            <filename>xml-gebi.html</filename>
            <type>text/html</type>
            <size>1021</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PHNjcmlwdD4KRE9NID0gKG5ldyBET01QYXJzZXIpLnBhcnNlRnJvbVN0cmluZygKICAgICc8P3ht
bCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJJU08tODg1OS0xIj8+JyArCiAgICAnPCFET0NUWVBF
IFJPT1QgWycgKwogICAgJyAgPCFFTEVNRU5UIENISUxEMiAoI1BDREFUQXxHQ0hJTEQpKj4nICsK
ICAgICcgIDwhQVRUTElTVCBDSElMRDIgYXR0cjEgQ0RBVEEgI0lNUExJRUQnICsKICAgICcgICAg
ICAgICAgICAgICAgICAgQ09ERSBJRCAjUkVRVUlSRUQ+JyArCiAgICAnXT4nICsKICAgICc8P3ht
bC1zdHlsZXNoZWV0ICJEYXRhIiA/PicgKwogICAgJzxST09UPicgKwogICAgJyAgPCEtLSBUZXN0
IENvbW1lbnQgLS0+JyArCiAgICAnICA8Q0hJTEQxIGF0dHIxPSJ2YWwxIiBhdHRyMzE9IjMxIj4n
ICsKICAgICcgICAgPEdDSElMRCBuYW1lPSJHQ0hJTEQxMSIvPicgKwogICAgJyAgICA8R0NISUxE
IG5hbWU9IkdDSElMRDEyIi8+JyArCiAgICAnICAgIFRleHQxJyArCiAgICAnICA8L0NISUxEMT4n
ICsKICAgICcgIDxDSElMRDIgYXR0cjE9InZhbDIiIENPREU9IjEiPicgKwogICAgJyAgICA8R0NI
SUxEIG5hbWU9IkdDSElMRDIxIi8+JyArCiAgICAnICAgIDxHQ0hJTEQgbmFtZT0iR0NISUxEMjIi
Lz4nICsKICAgICcgIDwvQ0hJTEQyPicgKwogICAgJyAgPGZvbzpDSElMRDMgeG1sbnM6Zm9vPSJo
dHRwOi8vZm9vLmNvbSIgZm9vOm5hbWU9Im1pa2UiLz4nICsKICAgICcgIDxsYW5nIHhtbDpsYW5n
PSJlbiI+JyArCiAgICAnICAgIDxmb28geG1sOmxhbmc9IiIvPicgKwogICAgJyAgICA8Zm9vLz4n
ICsKICAgICcgICAgPGZceGY2XHhmOC8+JyArCiAgICAnICA8L2xhbmc+JyArCiAgICAnPC9ST09U
PicgKwogICAgJzw/bm8tZGF0YSA/PicsCiAgICAnYXBwbGljYXRpb24veG1sJyk7CgppZiAoRE9N
LmdldEVsZW1lbnRCeUlkKCcxJykpCiAgZG9jdW1lbnQud3JpdGUoIjxwPlNVQ0NFU1M8L3A+Iik7
CmVsc2UKICBkb2N1bWVudC53cml0ZSgiPHA+RkFJTFVSRTwvcD4iKTsKPC9zY3JpcHQ+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>