[whatwg] Test suite: Embedded content

Ian Hickson ian at hixie.ch
Mon Nov 28 12:04:32 PST 2005


On Mon, 28 Nov 2005, Simon Pieters wrote:
> 
> I've created a test suite for <img>, <iframe>, <embed>/<noembed> and 
> <object> with the data types image/png, text/plain, text/html, 
> application/xml and application/x-shockwave-flash, with the HTTP 
> responces 200, 404, 410, 301 to 200, 301 to 404 and 301 to 410.
> 
>   http://zcorpan.1go.dk/test/html/embedded/
> 
> Are the pass conditions correct?

Not sure, I haven't really worked out what that section should say yet.

I think for <img> you want to only support image/* types (e.g. not 
text/plain or text/html, not sure about image/svg+xml either, since there 
is no difference between that and application/xhtml+xml); and you want to 
only show them for 200 (or 301-200). For <iframe> you want to support all 
types, and you want to show the contents for all the response codes, but 
they should show inside the frame regardless of the type. For <embed> you 
want to show only things that require plugins, and only if they have 200 
(or 301-200) responses. For <object> you want to show any type, and they 
should show without the frame if they are image or plugin data, and with 
the frame if they are not, but should only show for 200 and 301-200; other 
codes should cause the fallback content to show.

HTH.


> (I tried to test <applet> aswell, but it turned out to be a pain to 
> create a simple Java applet since the file name and the Java code must 
> match, which means that I have to compile 50 different applets and do 
> some mod_rewrite just to make it work. "Content-Disposition: inline; 
> filename=pass.class" didn't work, neither did "Content-Location: 
> pass.class". Suggestions?)

I doubt HTML5 will have <applet>.


BTW it is spelt "response".

Cheers,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list