Home Forums General XMetaL Discussion Attribute with empty string value Reply To: Attribute with empty string value

Derek Read

Reply to: Attribute with empty string value

The Attribute Inspector can't really help distinguish things here as it has no way to distinguish the to in its UI.
You might be able to do something with CSS though.

For scripting there is DOMElement_object.hasAttribute() which allows you to check whether an attribute is present, even if it is set to “”. That might be useful in any scripting solution.

So, this attribute is really meant to be used as a boolean option? That doesn't seem very user friendly to me (ie: easy to distinguish, even when check the XML source).