<?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>15949</bug_id>
          
          <creation_ts>2007-11-12 01:49:35 -0800</creation_ts>
          <short_desc>localName should be null for all nodes except ELEMENT_NODE and ATTRIBUTE_NODE</short_desc>
          <delta_ts>2019-02-06 09:04:12 -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>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>17060</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sjoerd Mulder">sjoerdmulder</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60968</commentid>
    <comment_count>0</comment_count>
    <who name="Sjoerd Mulder">sjoerdmulder</who>
    <bug_when>2007-11-12 01:49:35 -0800</bug_when>
    <thetext>According to the specifications: http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSLocalN

Returns the local part of the qualified name of this node.
For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null.

But webkit returns:

&apos;#text&apos; for CDATA_SECTION_NODE (huh?)
&apos;#text&apos; for TEXT_NODE
&apos;#comment&apos; for COMMENT_NODE
&apos;&apos; for DOCUMENT_NODE

didnt test this for other &apos;exotic&apos; node types (PROCESSING_INSTRUCTION_NODE etc..)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60969</commentid>
    <comment_count>1</comment_count>
      <attachid>17198</attachid>
    <who name="Sjoerd Mulder">sjoerdmulder</who>
    <bug_when>2007-11-12 01:51:13 -0800</bug_when>
    <thetext>Created attachment 17198
Testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72487</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Blaut">webkit</who>
    <bug_when>2008-03-02 03:53:27 -0800</bug_when>
    <thetext>The test case in the latest Webkit r30667 works properly. In all 4 tested case returned value is &quot;null&apos;. I change the bug report from UNCONFIRMED to WORKSFORME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72566</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-03 05:00:38 -0800</bug_when>
    <thetext>Reopening to close a duplicate of bug 17060.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72567</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-03-03 05:01:03 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 17060 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1503122</commentid>
    <comment_count>5</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2019-02-06 09:04:12 -0800</bug_when>
    <thetext>Mass moving XML DOM bugs to the &quot;DOM&quot; Component.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>17198</attachid>
            <date>2007-11-12 01:51:13 -0800</date>
            <delta_ts>2007-11-12 01:51:13 -0800</delta_ts>
            <desc>Testcase</desc>
            <filename>bug.html</filename>
            <type>text/html</type>
            <size>755</size>
            <attacher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