<?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>25244</bug_id>
          
          <creation_ts>2014-04-03 07:20:20 +0000</creation_ts>
          <short_desc>What do Attr objects serialize?</short_desc>
          <delta_ts>2014-04-03 18:24:58 +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 Parsing and Serialization</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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="Travis Leithead [MSFT]">travil</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103312</commentid>
    <comment_count>0</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-03 07:20:20 +0000</bug_when>
    <thetext>For XMLSerializer.serializeToString--

In IE, these serialize the Attr&apos;s value only

In Firefox, these serialize the empty string all the time

It usually does not make sense to serialize an Attr object on its own, and it certainly wouldn&apos;t constitute a well-formed internal general parsed entity.

So, make the spec return the empty string (or throw) on a serialization of this object type.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103334</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-04-03 12:41:08 +0000</bug_when>
    <thetext>Blink serializes the value also (and escapes &amp;&lt;&gt; but not &quot;&apos;).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103362</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-04-03 16:30:54 +0000</bug_when>
    <thetext>Note that per DOM Attr is not a Node and therefore it would throw.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103365</commentid>
    <comment_count>3</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-03 18:14:03 +0000</bug_when>
    <thetext>Hmm, yes, I had forgotten that.

WebIDL validation against the Node type would cause the API to throw a TypeError. So, I guess this case is already handled for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103368</commentid>
    <comment_count>4</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2014-04-03 18:24:58 +0000</bug_when>
    <thetext>I noted this condition in the spec to avoid any future questions (and to remind myself later when I forget again).

Fixed in commit:
https://dvcs.w3.org/hg/innerhtml/rev/de442ae4cc27</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>