null prepended to XDefaultStyle attribute
Pure Java HTML / CSS rendering engine
Status: Beta
Brought to you by:
radkovo
HTMLNorm.attributesToStyle(Node, String)
prepends a null;
to the XDefaultStyle
attribute.
if (attrs.length() > 0)
el.setAttribute("XDefaultStyle", el.getAttribute("XDefaultStyle") + ";" + attrs);
as we can see in the code above if the value returned by el.getAttribute("XDefaultStyle")
is null
then that will become the part of the value along with the ;
Anonymous
According to the original W3C specification, getAttribute() should return empty string when the attribute is not set. However, new versions of the specification requires returning null. This difference could affect jStyleParser and CSSBox at many points. Hopefully, I have fixed all of them but further testing is necessary.
Thanks Radek.
Closed in 1.19