<?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>4568</bug_id>
          
          <creation_ts>2005-08-21 17:25:51 -0700</creation_ts>
          <short_desc>DOM tests expect hierarchy exception adding wrong types of nodes to parents</short_desc>
          <delta_ts>2019-02-06 09:03:22 -0800</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>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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>4565</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Vicki Murley">vicki</assigned_to>
          <cc>andersca</cc>
    
    <cc>cdumez</cc>
    
    <cc>curt.arnold</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17067</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-21 17:25:51 -0700</bug_when>
    <thetext>There are 4 tests in the W3C DOM Level 1 Core suite that are failing because we allow any node to have 
any parent:

    hc_attrappendchild2
    hc_nodeappendchildinvalidnodetype
    hc_nodeinsertbeforeinvalidnodetype
    hc_nodereplacechildinvalidnodetype

In the past I have been under the impression that any node could be put anywhere, mimicing the fact 
that XML allows any node to be anywhere. But the standard disagrees. We need to look into behavior of 
other browsers to see if we can implement this behavior without hurting anything. I think there&apos;s a 
chance that we might need to change the test for at least the attrappendchild2 test, which also fails in 
Firefox (the other tests succeed in Firefox, so it must be doing at least some checking of this type).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17993</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2005-08-30 21:53:16 -0700</bug_when>
    <thetext>Curt, do you have any insight into this issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18172</commentid>
    <comment_count>2</comment_count>
    <who name="Curt Arnold">curt.arnold</who>
    <bug_when>2005-08-31 20:24:32 -0700</bug_when>
    <thetext>Section 1.1.1 of the DOM Core recommendation (http://www.w3.org/TR/1998/REC-DOM-
Level-1-19981001/level-one-core.html#ID-1590626202) explicitly specifies the structure model and 
addresses both HTML and XML documents.  XML does not allow any node to be anywhere.  There is no 
means in XML to author a well-formed document where an attribute has a element as a child as is 
attempted in hc_attrappendchild2.   

The recommendation could have been written to allow infeasible structures and throw exception when 
attempting to serialize or other action that required a feasible document structure.  However, section 
1.1.1 and the definition and usage of HIERARCHY_REQUEST_ERR within the recommendation seem fairly 
clear that attempts to create a structurally infeasible document should result in an exception.

I am overdue in preparing an updated test results matrix so that you can compare Safari&apos;s results with a 
large number of other implementations.  I hope I can get to that tomorrow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21497</commentid>
    <comment_count>3</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-10-05 15:46:21 -0700</bug_when>
    <thetext>&lt;rdar://problem/4288276&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22944</commentid>
    <comment_count>4</comment_count>
    <who name="Vicki Murley">vicki</who>
    <bug_when>2005-10-25 13:50:13 -0700</bug_when>
    <thetext>Fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1502954</commentid>
    <comment_count>5</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:03:22 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>