Re: [selectors4] :empty psuedo class and input fields

Stefan Wallin:

> But unfortunately I still have semantic issues with what :empty means for elements which cannot have children. 

An element (type) that cannot have children, like HTML’s ‘input’, is called “empty” in several document language description languages (think SGML, XSD, …). CSS uses the term for any element (instance) that does not have children although it possibly could, e.g. “<a></a>” or “<a/>”. Attributes are not children.

Therefore ‘:empty’ is a perfectly sensible and maybe the best available name, although someone from a less technical background, say a graphics designer, may intuitively assume a different meaning.

Received on Monday, 12 March 2012 20:42:35 UTC