<?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>3811</bug_id>
          
          <creation_ts>2005-07-02 05:07:22 -0700</creation_ts>
          <short_desc>XML serializer does not support namespaces</short_desc>
          <delta_ts>2019-02-06 09:04:09 -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>312.x</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5262</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Henri Sivonen">hsivonen</reporter>
          <assigned_to name="Maciej Stachowiak">mjs</assigned_to>
          <cc>cdumez</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13674</commentid>
    <comment_count>0</comment_count>
    <who name="Henri Sivonen">hsivonen</who>
    <bug_when>2005-07-02 05:07:22 -0700</bug_when>
    <thetext>Steps to reproduce:
1) Load an XML document that uses namespaces. In particular, there should be an
xml:lang attribute.
2) Add some namespaced stuff to the DOM tree using the NS-aware DOM level 2 API
calls.
3) Use the setAttributeNS and setAttribute methods to attempt to modify the
xml:lang attribute.
4) POST the modified doc to the server.

Actual results:
The serialization does not have namespaces at all and the local names are used
as element and attribute names. The element that had an xml:lang attribute may
now have two (!) attributes named lang making the serialization ill-formed!

Expected results:
Expected a namespace-savvy serializer to be used. That is, expected the
serializer to preserve (ns-URI,localName) pairs by synthetizing xmlns attibutes
and prefixes if necessary. Expected residual prefixes and xmlns attributes to be
used as hints of preferred prefixes when possible.

Expected DOM Level 1 tampering with the xml:foo attributes to get the namespace
right. (IE does not do namespaces or DOM Level 1 but does have sane behavior
with DOM Level 1 and xml:foo attributes.)

Additional info:
I had to fall back to RSS-style non-XML-ish language metadata, which is uncool.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26424</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2005-12-23 05:38:16 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>