You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Sandor Szego <SS...@Saba.com> on 2001/10/11 04:01:29 UTC

HTML Serializer: attributes with "" value

Hi,

I just joined the list, so forgive me if this question was asked many times
before (I tried to see the FAQ, but had no luck).
So the problem:
When serializing an attribute whose value is the empty string (e.g., <img
alt="" src=" ..." >) the HTMLSerializer outputs the attribute name only.
I.e. it produces the following HTML:
<img alt src="..."> 
According to my reading of the HTML spec, this is not the correct behavior.

Does anyone have any recommendations how to fix this problem? Or is this a
"feature" of the serializer?

Thanks!

Sandor