<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17058</bug_id>
          
          <creation_ts>2012-05-15 10:59:35 +0000</creation_ts>
          <short_desc>Namespace of document.createElement elements.</short_desc>
          <delta_ts>2012-11-09 15:56:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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="Nicholas Stimpson">nicholas.stimpson</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67725</commentid>
    <comment_count>0</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2012-05-15 10:59:35 +0000</bug_when>
    <thetext>createElement has the namespace of the element being set to the HTML namespace. Shouldn&apos;t that only be the case if the context node is an HTML document?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67726</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-15 11:03:02 +0000</bug_when>
    <thetext>What is the use case for making it conditional?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67729</commentid>
    <comment_count>2</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2012-05-15 11:10:19 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; What is the use case for making it conditional?

Surely it&apos;s not backward compatible with DOM3 and earlier for XML documents otherwise. Is that not a concern?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67730</commentid>
    <comment_count>3</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2012-05-15 11:18:34 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; What is the use case for making it conditional?
&gt; 
&gt; Surely it&apos;s not backward compatible with DOM3 and earlier for XML documents
&gt; otherwise. Is that not a concern?

I mean, I&apos;m not sure what happens for XML documents in browsers. I&apos;m thinking of DOMs built in other contexts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67731</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-15 11:20:26 +0000</bug_when>
    <thetext>Compatibility with DOM3 is not a goal. DOM4 e.g. completely revamps how Attr are handled (although whether that will work out remains to be seen).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67734</commentid>
    <comment_count>5</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2012-05-15 11:48:20 +0000</bug_when>
    <thetext>(In reply to comment #4)

OK. Sounds problematic to me, but so long as you&apos;re comfortable with it.

Could you make non DOM3 backward-compatibility clearer in the goals section of the document?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67736</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-15 12:11:41 +0000</bug_when>
    <thetext>Would adding &quot;Note: The above implies that compatibility with previous iterations of DOM is not always kept.&quot; at the bottom of the goals section help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67739</commentid>
    <comment_count>7</comment_count>
    <who name="Nicholas Stimpson">nicholas.stimpson</who>
    <bug_when>2012-05-15 12:45:36 +0000</bug_when>
    <thetext>(In reply to comment #6)
Yes, I think it would. But I see changing the way createElement works as pretty fundamental change for almost everyone who manipulates a XML DOM outside of a browser, and that&apos;s not really reflected in the goals section (which looks like a set of consolidation, simplification, correction, and extension changes, and therefore not very frightening.)

I think it&apos;s important that developers know that that if they build a DOM with a DOM4 library, that they may well end up with a fundamentally different DOM to have to process. Particularly in places where DOMs contain a mixture of namespaced elements and elements in no namespace (I&apos;ve certainly built those in the past), code that tests the element&apos;s namespace directly (via namespace-uri() in xpath for example) is liable to need to change.

But if attributes are also completely different, then that&apos;s going to become pretty obvious quite quickly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78125</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-11-09 15:56:31 +0000</bug_when>
    <thetext>Reading Goals again I actually think that &quot;Simplifying them as much as possible.&quot; implies it&apos;s breaking as it implies removal.

Given that we also have bug 19431 now I&apos;m going to mark this one WONTFIX.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>