- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 29 Aug 2008 11:05:23 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv14253 Modified Files: Overview.html Log Message: Mention that you can omit the </option> in <option><optgroup> too. Also, make the text support <optgroup> outside of <select>, but comment it out since it's irrelevant for now. (whatwg r2129) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1300 retrieving revision 1.1301 diff -u -d -r1.1300 -r1.1301 --- Overview.html 29 Aug 2008 10:37:52 -0000 1.1300 +++ Overview.html 29 Aug 2008 11:05:20 -0000 1.1301 @@ -45811,18 +45811,34 @@ href="#rp">rp</a></code> element is immediately followed by an <code><a href="#rt">rt</a></code> or <code><a href="#rp">rp</a></code> element, or if there is no more content in the parent element.</p> - <!-- </optgroup> --> + <!-- </optgroup> (the text assumes <optgroup> can only be inside a + <select>; commented out text below can handle the non-<select> case + if we ever allow it) --> <p>An <code>optgroup</code> element's <span title=syntax-end-tag>end - tag</span> may be omitted if the <code>optgroup</code> element is - immediately followed by another <code>optgroup</code> element, or if there - is no more content in the parent element.</p> + tag</span> may be omitted if the <code>optgroup</code> element + <!--has an ancestor + <code>select</code> element and--> is immediately + followed by another <code>optgroup</code> element, or if + <!--all of the elements + that are ancestors of the <code>optgroup</code> element, up to and + including the first ancestor element that is not an + <code>optgroup</code> element, have no more content--> + there is no more content in the parent element.</p> + <!-- so e.g. the max number of </optgroup>s are omitted here: + <select><optgroup></select> + <p id=x><optgroup></optgroup>x</p> + <p id=x><optgroup><optgroup></optgroup></optgroup>x</p> + <p><optgroup id=x><optgroup></optgroup>x</p> + <p><optgroup><optgroup id=x>x</p> + --> <!-- </option> --> <p>An <code>option</code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the <code>option</code> element is - immediately followed by another <code>option</code> element, or if there - is no more content in the parent element.</p> + immediately followed by another <code>option</code> element, or if it is + immediately followed by an <code>optgroup</code> element, or if there is + no more content in the parent element.</p> <!-- <colgroup> --> <p>A <code><a href="#colgroup">colgroup</a></code> element's <span @@ -45902,11 +45918,15 @@ <p>For historical reasons, certain elements have extra restrictions beyond even the restrictions given by their content model. - <p>An <code>optgroup</code> element must not contain <code>optgroup</code> - elements, even though these elements are technically allowed to be nested - according to the content models described in this specification. (If an - <code>optgroup</code> element is put inside another in the markup, it will - in fact imply an <code>optgroup</code> end tag before it.) + <p>An <code>optgroup</code> element <!--that is a descendant of a + <code>select</code> element--> + must not contain <code>optgroup</code> elements, even though these + elements are technically allowed to be nested according to the content + models described in this specification. (If an <code>optgroup</code> + element is put inside another <!--<code>optgroup</code> element + inside a <code>select</code> element--> + in the markup, it will in fact imply an <code>optgroup</code> end tag + before it.) <p>A <code><a href="#table">table</a></code> element must not contain <code><a href="#tr">tr</a></code> elements, even though these elements are
Received on Friday, 29 August 2008 11:05:56 UTC