<?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>74670</bug_id>
          
          <creation_ts>2011-12-15 17:32:06 -0800</creation_ts>
          <short_desc>Remove legacy node types</short_desc>
          <delta_ts>2016-08-04 14:18:11 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>
          <dependson>91316</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adamk</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>arv</cc>
    
    <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>rniwa</cc>
    
    <cc>syoichi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>522389</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-12-15 17:32:06 -0800</bug_when>
    <thetext>http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html

DOM4 removes a bunch of node types. We should remove them from webcore.

  const unsigned short ATTRIBUTE_NODE = 2; // historical
  const unsigned short CDATA_SECTION_NODE = 4; // historical
  const unsigned short ENTITY_REFERENCE_NODE = 5; // historical
  const unsigned short NOTATION_NODE = 12; // historical

There&apos;s already bug 74371 for attributes. 

It appears that ENTITY_REFERENCE_NODE can only be created in XML documents by script calling document.createEntityReference. I think we can safely remove them. This will also have the added benefit of improving appendChild/insertBefore performance.

I haven&apos;t looked into cdata_section or notation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217592</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-04 14:16:56 -0700</bug_when>
    <thetext>The following were already removed:
  const unsigned short ENTITY_REFERENCE_NODE = 5; // historical
  const unsigned short NOTATION_NODE = 12; // historical

I believe Anne plans to add CDATA_SECTION_NODE / ATTRIBUTE_NODE back into the DOM specification this month because no major browser has been able to drop them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217595</commentid>
    <comment_count>2</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2016-08-04 14:17:52 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; The following were already removed:
&gt;   const unsigned short ENTITY_REFERENCE_NODE = 5; // historical
&gt;   const unsigned short NOTATION_NODE = 12; // historical
&gt; 
&gt; I believe Anne plans to add CDATA_SECTION_NODE / ATTRIBUTE_NODE back into
&gt; the DOM specification this month because no major browser has been able to
&gt; drop them.

Referring to Anne&apos;s recent comment on https://github.com/whatwg/dom/issues/102#issuecomment-236141842</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>