W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > August 2012

[Bug 18645] [Shadow]: HTMLSelectElement should have an insertion point

From: <bugzilla@jessica.w3.org>
Date: Wed, 22 Aug 2012 16:59:33 +0000
Message-Id: <E1T4EHF-00045f-AC@jessica.w3.org>
To: public-webapps-bugzilla@w3.org

--- Comment #2 from Dimitri Glazkov <dglazkov@chromium.org> 2012-08-22 16:59:32 UTC ---
(In reply to comment #1)
> Actually a <select> element will get not only the direct children <option> but
> also get non direct children.
> For example, 
> ​<select>
> <option>foo</option>
> <p><option>bar</option></p>
> </select>​​​​​​​​​​​​​​​​​​​​​​​​​​
> both 'foo' and 'bar' will be used in this case.

Right, but in this case, the HTML parser is playing tricks on you. Look at the
resulting DOM tree: you'll see that <p> is silently dropped. However, if still
you try to create this structure imperatively, you'll see that only <options>
that are direct children are shown:


Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 22 August 2012 16:59:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 22 August 2012 16:59:36 GMT