W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [wf2] seeding SELECT with ambiguous XML

From: Sjoerd Visscher <sjoerd@w3future.com>
Date: Wed, 20 Jul 2005 22:38:28 +0200
Message-ID: <42DEB644.7060502@w3future.com>
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/
Received on Wednesday, 20 July 2005 13:38:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC