[whatwg] [wf2] seeding SELECT with ambiguous XML

Sjoerd Visscher sjoerd at w3future.com
Wed Jul 20 13:38:28 PDT 2005


Anne van Kesteren wrote:
> Say I load this file through a DATA attribute of a SELECT element:
> 
> <xh:select xmlns:xh="http://www.w3.org/1999/xhtml">
>  <xh:option>FAIL</xh:option>
>  <foo xmlns="tag:example.org,2005:/test">
>   <xh:option selected="selected">PASS</xh:option>
>  </foo>
> </xh:select>
> 
> Should it say PASS? Is it undefined? Is there a specification which defines
> this?

"If a user agent encounters an element it does not recognize, it should 
try to render the element's content."
http://www.w3.org/TR/html401/appendix/notes.html#notes-invalid-docs

It is unfortunate that they use the word "render", but the intent is to 
ignore unknown elements, but to continue processing their child nodes.

So it should say PASS.

(Note that I'm ignoring that you say that you load this file though a 
DATA attribute. I don't think it should matter how the markup has come 
into existence.)

-- 
Sjoerd Visscher
http://w3future.com/weblog/



More information about the whatwg mailing list