This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
For XMLSerializer.serializeToString-- In IE, these serialize the Attr'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'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.
Blink serializes the value also (and escapes &<> but not "').
Note that per DOM Attr is not a Node and therefore it would throw.
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.
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