Setting an attribute to (no value)

Tinderbox Icon

You can remove an attribute value by setting it to nothing:

$MyAttr=; 

Note the semicolon is not quoted, even for attribute type like strings. You can also use a empty string for string types:

$MyString=""; 

Only the first of these syntaxes also allows attributes that use prototype or preference settings to re-inherit these again. See about resetting inheritance for more detail.


Up: Attributes
Previous: Attributes - $ prefix notation  Next: Setting an attribute to re-enable inheritance 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox