<?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>74371</bug_id>
          
          <creation_ts>2011-12-12 17:00:01 -0800</creation_ts>
          <short_desc>Need data on whether we can implement DOM4 attribute objects</short_desc>
          <delta_ts>2023-12-29 03:05:03 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="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>darin</cc>
    
    <cc>mjs</cc>
    
    <cc>rafaelw</cc>
    
    <cc>rniwa</cc>
    
    <cc>sam</cc>
    
    <cc>skyul</cc>
    
    <cc>syoichi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>519696</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-12-12 17:00:01 -0800</bug_when>
    <thetext>DOM4 considerably simplifies Attrs (http://www.w3.org/TR/domcore/#interface-attr). DOM2 has them be full-fledged Nodes. We need data on how safe implementing DOM4&apos;s version will be. 

If someone instruments Node to log to Chromium histograms everytime an API is used on an Attr, then we can get data and make informed decisions. 

The new API is 1000x better, so the more of it we can implement the better. The parts we&apos;re worried about implementing should be brought up on www-dom@.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>520201</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-12-13 11:11:39 -0800</bug_when>
    <thetext>&gt; The new API is 1000x better

For completeness, could you explain some ways in which it is better?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>520213</commentid>
    <comment_count>2</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2011-12-13 11:26:01 -0800</bug_when>
    <thetext>The main difference is that they are not Nodes anymore. They are (hopefully) just the minimal interface required by web compat. This makes Attrs a lot lighter-weight (e.g. don&apos;t need to have member variables for child nodes) and gets rid of non-sensical APIs (e.g. appendChild to an Attr).

In terms of WebCore implementation, it may eventually allow us to remove the distinction between Attrs and Attributes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>523131</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-12-16 16:05:21 -0800</bug_when>
    <thetext>One place where attribute nodes are particularly visible in the platform is XPath.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002209</commentid>
    <comment_count>4</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-12-29 03:05:03 -0800</bug_when>
    <thetext>This is more or less complete now. Any further improvements should have more detailed bugs.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>