[whatwg] WA1: <meta> attribute requirements

Ian Hickson:
> The difficulty is in walking the fine line between useful and 
> over-constrained. For example, the fact that <ol></ol> is invalid in HTML4 
> is a real problem.

Well,

   <ol><li>This list item will be replaced by a script.</ol>

is not invalid. An empty list doesn't make any sense otherwise, IMHO, so 
it's sensible to require at least one 'li' child. Actually I would have 
made some content models rather stricter than looser.
I think both, hard-coded and script-generated markup?, have to be valid. 
Of course the latter may be invalid during steps in the script's run, 
but not after it finishes.

? Or the markup infered from the script-altered DOM tree.

Received on Tuesday, 19 July 2005 08:57:03 UTC