<?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>15172</bug_id>
          
          <creation_ts>2007-09-10 11:04:01 -0700</creation_ts>
          <short_desc>object fallback - empty string for first argument of setAttributeNS does not work like null</short_desc>
          <delta_ts>2009-03-14 21:23:16 -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>PC</rep_platform>
          <op_sys>All</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael A. Puls II">shadow2531</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>701</commentid>
    <comment_count>0</comment_count>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2007-09-10 11:04:01 -0700</bug_when>
    <thetext>Tested with WebKit-SVN-r25455.

setAttributeNS takes a string for the first argument. Therefore, if you want to put an attribute in the null namespace, you would use &quot;&quot;.

This works fine in Opera and Firefox (so does null), but webkit requires null.

If you do setAttributeNS(&quot;&quot;, &quot;type&quot;, &quot;application/x-unrecognized&quot;) on an object element and append it to the document, if the object has fallback content, it won&apos;t be shown unless you use null instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>699</commentid>
    <comment_count>1</comment_count>
      <attachid>16246</attachid>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2007-09-10 11:05:11 -0700</bug_when>
    <thetext>Created attachment 16246
XHTML TC</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>688</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-09-10 21:57:24 -0700</bug_when>
    <thetext>From DOM3Core: &quot;Applications should use the value null as the namespaceURI parameter for methods if they wish to have no namespace. In programming languages where empty strings can be differentiated from null, empty strings, when given as a namespace URI, are converted to null.&quot; Also: &quot;applications must use the value null as the namespaceURI parameter for methods if they wish to have no namespace.&quot;

So, while null is the preferred form, both null and empty string should work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59833</commentid>
    <comment_count>3</comment_count>
      <attachid>16943</attachid>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2007-10-29 22:52:43 -0700</bug_when>
    <thetext>Created attachment 16943
createElementNS test

This affects createElementNS also and probably other ns functions.

createElementNS(&quot;&quot;, &quot;div&quot;) should do the exact same thing as createElementNS(null, &quot;div&quot;), but it doesn&apos;t in Safari. Works fine in Opera and FF.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113756</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-03-14 04:57:17 -0700</bug_when>
    <thetext>Fixed with bug 24548 in &lt;http://trac.webkit.org/changeset/41700&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113796</commentid>
    <comment_count>5</comment_count>
    <who name="Michael A. Puls II">shadow2531</who>
    <bug_when>2009-03-14 21:23:16 -0700</bug_when>
    <thetext>Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16246</attachid>
            <date>2007-09-10 11:05:11 -0700</date>
            <delta_ts>2007-09-10 11:05:11 -0700</delta_ts>
            <desc>XHTML TC</desc>
            <filename>ns.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>815</size>
            <attacher name="Michael A. Puls II">shadow2531</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgogICAgPGhlYWQ+CiAg
ICAgICAgPHRpdGxlPm9iamVjdCBmYWxsYmFjayAtIGVtcHR5IHN0cmluZyBmb3IgZmlyc3QgYXJn
dW1lbnQgb2Ygc2V0QXR0cmlidXRlTlMgZG9lcyBub3Qgd29yayBsaWtlICdudWxsJzwvdGl0bGU+
CiAgICAgICAgPHNjcmlwdD4KICAgICAgICAgICAgd2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkg
ewogICAgICAgICAgICAgICAgdmFyIG5zID0gImh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwi
CiAgICAgICAgICAgICAgICB2YXIgb2JqID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudE5TKG5zLCAi
b2JqZWN0Iik7CiAgICAgICAgICAgICAgICBvYmouc2V0QXR0cmlidXRlTlMoIiIsICJ0eXBlIiwg
ImFwcGxpY2F0aW9uL3gtdW5yZWNvZ25pemVkIik7CiAgICAgICAgICAgICAgICBvYmouYXBwZW5k
Q2hpbGQoZG9jdW1lbnQuY3JlYXRlVGV4dE5vZGUoIlBBU1MiKSk7CiAgICAgICAgICAgICAgICB2
YXIgcmVzdWx0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05hbWVOUyhucywgInAiKVsxXTsK
ICAgICAgICAgICAgICAgIHJlc3VsdC50ZXh0Q29udGVudCA9ICIiOwogICAgICAgICAgICAgICAg
cmVzdWx0LmFwcGVuZENoaWxkKG9iaik7CiAgICAgICAgICAgIH07CiAgICAgICAgPC9zY3JpcHQ+
CiAgICA8L2hlYWQ+CiAgICA8Ym9keT4KICAgICAgICA8cD5Zb3Ugc2hvdWxkIHNlZSBQQVNTIGJl
bG93LjwvcD4KICAgICAgICA8cD5UaGlzIHRlc3QgcmVxdWlyZXMgSmF2YXNjcmlwdC48L3A+CiAg
ICA8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16943</attachid>
            <date>2007-10-29 22:52:43 -0700</date>
            <delta_ts>2007-10-29 22:52:43 -0700</delta_ts>
            <desc>createElementNS test</desc>
            <filename>cens.html</filename>
            <type>text/html</type>
            <size>427</size>
            <attacher name="Michael A. Puls II">shadow2531</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgogICAgPGhlYWQ+CiAgICAgICAgPHRpdGxlPjwvdGl0bGU+
CiAgICAgICAgPHNjcmlwdD4KICAgICAgICAgICAgd2luZG93Lm9ubG9hZCA9IGZ1bmN0aW9uKCkg
ewogICAgICAgICAgICAgICAgdmFyIGRpdiA9IGRvY3VtZW50LmNyZWF0ZUVsZW1lbnROUygiIiwg
ImRpdiIpOwogICAgICAgICAgICAgICAgZG9jdW1lbnQuYm9keS5pbm5lckhUTUwgPSAoIm9iamVj
dCIgPT0gdHlwZW9mIGRpdi5uYW1lc3BhY2VVUkkgJiYgZGl2Lm5hbWVzcGFjZVVSSSA9PSBudWxs
KSA/ICJQQVNTIiA6ICJGQUlMIjsKICAgICAgICAgICAgfTsKICAgICAgICA8L3NjcmlwdD4KICAg
IDwvaGVhZD4KICAgIDxib2R5PgogICAgICAgIDxwPlRoaXMgdGVzdCByZXF1aXJlcyBqYXZhc2Ny
aXB0LjwvcD4KICAgIDwvYm9keT4KPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>