[whatwg] default select item that does not satisfy required attr.

dolphinling lists at dolphinling.net
Fri Feb 24 07:26:14 PST 2006


dolphinling wrote:
> What do current UAs do with known non-option elements and 
> unknown elements in <select>?

Replying to myself, it seems that Firefox trunk ignores all three of 
text not in any element, text in a known non-option element, and text in 
an unknown element, when served as text/html, even not including them in 
the DOM. When served as application/xhtml+xml, they are displayed as 
would be expected (inside the dropdown, <p> with margins, etc.), but <p 
selected="selected" does not make the <p> the first thing shown.

So it appears my first idea is infeasable backwards-compatibly.

-- 
dolphinling
<http://dolphinling.net/>



More information about the whatwg mailing list