In CSS3, is there any attribute that takes false
or null
value? I suppose and expect not, but wanted to make sure.
I am writing a javascript code (related to ajax interaction) that sets or removes an attribute to/from some DOM object. The function takes an attribute name and its value as the arguments, and I am thinking that, if the value turns out to be false
or null
, then removeAttribute()
function should be called, and otherwise, the attribute should be assigned with that value. If there is a style attribute that possibly takes false
or null
value, then I cannot do that, so I wanted to make sure.