<?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>14594</bug_id>
          
          <creation_ts>2007-07-12 10:29:07 -0700</creation_ts>
          <short_desc>REGRESSION: switching to source mode adds xmlns text at the top</short_desc>
          <delta_ts>2007-07-17 07:37:27 -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>HTML Editing</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>http://www.fckeditor.net/nightly/browsers_test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>9915</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Alfonso Martínez de Lizarrondo">amla70</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mrowe</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4947</commentid>
    <comment_count>0</comment_count>
    <who name="Alfonso Martínez de Lizarrondo">amla70</who>
    <bug_when>2007-07-12 10:29:07 -0700</bug_when>
    <thetext>Load http://www.fckeditor.net/nightly/browsers_test.html and switch to source mode, at the top there will appear a xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; text.

The demo is working fine (in this aspect) with r24096, but fails now with r24182

If neccesary I might generate a simplified testcase, but at least I would like to know that someone else can confirm the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4887</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-07-13 08:46:19 -0700</bug_when>
    <thetext>The URL you provide results in a 404, so it is not possible to confirm that this bug occurs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4782</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-14 13:24:38 -0700</bug_when>
    <thetext>Frederico, what happened to http://www.fckeditor.net/nightly/browsers_test.html?  It&apos;s returning a 404 error.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4765</commentid>
    <comment_count>3</comment_count>
      <attachid>15519</attachid>
    <who name="Alfonso Martínez de Lizarrondo">amla70</who>
    <bug_when>2007-07-14 14:17:34 -0700</bug_when>
    <thetext>Created attachment 15519
Simplified testcase

I&apos;ve thought about the problem and I&apos;ve creted this testcase, so the url is no longer necessary.
The recent nightlies append the xmlns attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4762</commentid>
    <comment_count>4</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-07-14 14:31:28 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Frederico, what happened to
&gt; http://www.fckeditor.net/nightly/browsers_test.html?  It&apos;s returning a 404
&gt; error.
&gt; 

We have moved to a new server yesterday and that page was missing. I&apos;ve restored it. Thanks for the prompt advice David.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4725</commentid>
    <comment_count>5</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-14 16:59:58 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Created an attachment (id=15519) [edit]
&gt; Simplified testcase
&gt; 
&gt; I&apos;ve thought about the problem and I&apos;ve creted this testcase, so the url is no
&gt; longer necessary.
&gt; The recent nightlies append the xmlns attribute.

Both this attachment and the original URL (http://www.fckeditor.net/nightly/browsers_test.html) include the xmlns attribute when downloaded via wget.  I don&apos;t think Safari is adding this.  Please confirm.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4737</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-07-15 00:26:34 -0700</bug_when>
    <thetext>I think this is caused by the fix to bug 8007, and is expected behavior. Document.createElement() now always creates elements in xhtml namespace, and of course, the namespace is serialized to source. One needs to either be prepared to get it, or to use HTML documents created with DOMImplementation.createHTMLDocument().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4627</commentid>
    <comment_count>7</comment_count>
    <who name="">webkit</who>
    <bug_when>2007-07-16 07:04:06 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; Both this attachment and the original URL
&gt; (http://www.fckeditor.net/nightly/browsers_test.html) include the xmlns
&gt; attribute when downloaded via wget.  I don&apos;t think Safari is adding this. 
&gt; Please confirm.

I think you didn&apos;t understood it well David. The bug is not in the page itself, but in the editor, which loads inside of it. Just check the original bug description.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4625</commentid>
    <comment_count>8</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-16 08:14:49 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #5)
&gt; &gt; Both this attachment and the original URL
&gt; &gt; (http://www.fckeditor.net/nightly/browsers_test.html) include the xmlns
&gt; &gt; attribute when downloaded via wget.  I don&apos;t think Safari is adding this. 
&gt; &gt; Please confirm.
&gt; 
&gt; I think you didn&apos;t understood it well David. The bug is not in the page itself,
&gt; but in the editor, which loads inside of it. Just check the original bug
&gt; description.

Yep, ap explained it in Comment #6.  Thanks!

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4584</commentid>
    <comment_count>9</comment_count>
    <who name="Alfonso Martínez de Lizarrondo">amla70</who>
    <bug_when>2007-07-16 14:58:17 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; I think this is caused by the fix to bug 8007, and is expected behavior.
&gt; Document.createElement() now always creates elements in xhtml namespace, and of
&gt; course, the namespace is serialized to source. One needs to either be prepared
&gt; to get it, or to use HTML documents created with
&gt; DOMImplementation.createHTMLDocument().
&gt; 

The only problem with this behavior is that it differs from what Firefox and Opera are doing. It isn&apos;t hard to workaround it in this case and even they way that the code is used right now in FCKeditor might be wrong, but as I said the output in Firefox and Opera of the testcase is different.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4533</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-07-17 07:37:27 -0700</bug_when>
    <thetext>We match Firefox in that createElement() always creates HTML elements (even in SVG documents), so the difference is that Firefox uses a null namespace for HTML elements, and we use http://www.w3.org/1999/xhtml.

In this, we follow the current HTML5 draft, so Firefox and Opera may get the same behavior some day. Alternatively, a better solution for HTML5 will be found, and then WebKit will need to change again.

From the draft: To ease migration from HTML to XHTML, UAs conforming to this specification will place elements in HTML in the http://www.w3.org/1999/xhtml namespace, at least for the purposes of the DOM and CSS. The term &quot;elements in the HTML namespace&quot;, or &quot;HTML elements&quot; for short, when used in this specification, thus refers to both HTML and XHTML elements.

So, I&apos;m closing this bug as WONTFIX (it&apos;s valid in that we don&apos;t match other browsers or any final specification, but it was a deliberate decision).</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15519</attachid>
            <date>2007-07-14 14:17:34 -0700</date>
            <delta_ts>2007-07-14 14:17:34 -0700</delta_ts>
            <desc>Simplified testcase</desc>
            <filename>xml_serializer.html</filename>
            <type>text/html</type>
            <size>739</size>
            <attacher name="Alfonso Martínez de Lizarrondo">amla70</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv
L0VOIj4NCjxodG1sIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hodG1sIj4NCjxoZWFk
Pg0KCTx0aXRsZT5YTUwgc2VyaWFsaXplcjwvdGl0bGU+DQoJPG1ldGEgaHR0cC1lcXVpdj0iQ29u
dGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0L2h0bWw7IGNoYXJzZXQ9dXRmLTgiIC8+DQoNCjwvaGVh
ZD4NCjxib2R5Pg0KCTxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4NCg0KCS8vIENyZWF0
ZSB0aGUgWE1MIERPTURvY3VtZW50IG9iamVjdC4NCgl2YXIgWE1MID0gZG9jdW1lbnQuaW1wbGVt
ZW50YXRpb24uY3JlYXRlRG9jdW1lbnQoICcnLCAnJywgbnVsbCApIDsNCg0KCS8vIEFkZCBhIHJv
b3QgZWxlbWVudCB0aGF0IGhvbGRzIGFsbCBjaGlsZCBub2Rlcy4NCgl2YXIgTWFpbk5vZGUgPSBY
TUwuYXBwZW5kQ2hpbGQoIFhNTC5jcmVhdGVFbGVtZW50KCAneGh0bWwnICkgKSA7DQoNCgkvLyBD
cmVhdGUgdGhlIFhNTFNlcmlhbGl6ZXIuDQoJdmFyIG9TZXJpYWxpemVyID0gbmV3IFhNTFNlcmlh
bGl6ZXIoKSA7DQoNCgkvLyBSZXR1cm4gdGhlIHNlcmlhbGl6ZWQgWE1MIGFzIGEgc3RyaW5nLg0K
CXZhciBzWEhUTUwgPSBvU2VyaWFsaXplci5zZXJpYWxpemVUb1N0cmluZyggTWFpbk5vZGUgKSA7
DQoNCg0KYWxlcnQoc1hIVE1MKQ0KDQoNCgk8L3NjcmlwdD4NCjwvYm9keT4NCjwvaHRtbD4NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>