W3C home > Mailing lists > Public > public-pfwg-comments@w3.org > January to March 2008

Required Child Elements

From: Henri Sivonen <hsivonen@iki.fi>
Date: Fri, 28 Mar 2008 11:43:31 +0200
Message-Id: <89214179-C5B0-49A4-8739-C934D5459915@iki.fi>
To: public-pfwg-comments@w3.org

Considering how content models usually work, I have to wonder if  
"Required Child Elements" really means "Only Kind of Permitted Child  
Elements".

For example, a listbox has option in its only Required Child Element.
  * Why is an option required? Shouldn't an empty listbox with no  
children be allowed?
  * Are non-option children allowed?
    - If yes, what is the UA supposed to do with the other children?
    - If not, why have 'option' as an explicit role at all? Couldn't  
children of the containers that require options be taken as options  
implicitly?

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Friday, 28 March 2008 09:44:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:45:57 UTC