<?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>18210</bug_id>
          
          <creation_ts>2008-03-29 12:56:39 -0700</creation_ts>
          <short_desc>DOMParser reports parsing errors differently than</short_desc>
          <delta_ts>2019-02-06 09:03:43 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13057</dup_id>
          
          <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>0</everconfirmed>
          <reporter name="Nicholas C. Zakas">webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75784</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas C. Zakas">webkit</who>
    <bug_when>2008-03-29 12:56:39 -0700</bug_when>
    <thetext>The DOMParser object doesn&apos;t report parsing errors. The following will cause a parser error in both Firefox and Opera:

var xmldom = (new DOMParser()).parseFromString(&quot;&lt;xml&gt;&quot;, &quot;text/xml&quot;);

The returned value is a document whose document element is &lt;parseerror/&gt; in Firefox and Opera; in WebKit it is &lt;xml/&gt; and no error occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76046</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-04-01 00:29:58 -0700</bug_when>
    <thetext>I cannot reproduce this. Try entering the following into the address bar:

javascript:alert((new XMLSerializer).serializeToString((new DOMParser()).parseFromString(&quot;&lt;xml&gt;&quot;, &quot;text/xml&quot;)))
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76437</commentid>
    <comment_count>2</comment_count>
    <who name="Nicholas C. Zakas">webkit</who>
    <bug_when>2008-04-06 12:39:14 -0700</bug_when>
    <thetext>Perhaps my original subject was incorrect. In Opera and FF, the &lt;parsererror&gt; element is the document element. In WebKit, it&apos;s inserted at the point of the parser error. This seems like a bug that should be fixed for interoperability.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76460</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-04-06 23:56:37 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 13057 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503024</commentid>
    <comment_count>4</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:03:43 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>