W3C home > Mailing lists > Public > public-html@w3.org > April 2016

Allow <option></option> with no content?

From: Chaals McCathie Nevile <chaals@yandex-team.ru>
Date: Mon, 25 Apr 2016 12:07:03 +0100
To: "HTML WG (public-html@w3.org)" <public-html@w3.org>
Message-ID: <op.ygg2h1rls7agh9@widsith.local>
Hi folks,

currently the option element isn't allowed to be empty.

But it is perfectly possible to create an empty option element, e.g. with  
javascript, or just using markup, and it seems to work. Is there any  
reason not to allow an empty value, or is there a valid use case for  
allowing it?

The github issue: https://github.com/w3c/html/issues/176

cheers

-- 
Charles McCathie Nevile - web standards - CTO Office, Yandex
  chaals@yandex-team.ru - - - Find more at http://yandex.com
Received on Monday, 25 April 2016 11:07:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 25 April 2016 11:07:30 UTC