W3C home > Mailing lists > Public > www-style@w3.org > March 2012

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

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Mon, 12 Mar 2012 21:42:08 +0100
Message-Id: <3B8B8E3A-E86E-4FF0-B71B-CB68379B514E@crissov.de>
To: "www-style@w3.org Style" <www-style@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:56 UTC