W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re: Testcase for XMP tag

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Thu, 03 May 2007 05:09:08 +0900
Message-ID: <4638EFE4.7020308@students.cs.uu.nl>
To: David Dailey <david.dailey@sru.edu>
CC: "public-html@w3.org" <public-html@w3.org>
David Dailey schreef:
> At 11:39 AM 5/1/2007, Laurens Holst wrote:
>> Attached you will find a testcase, also mirrored on my website[1] 
>> (with possibly improvements made after this message), which tests the 
>> DOM and output formed by the <xmp> tag.
>>
>> This illustrates an inconsistency between browsers, where Firefox and 
>> IE agree in both DOM and rendering, and Opera does not. I’m not 
>> sure about Safari because as usual, I don’t have a mac to test. 
>> I’m inclined to say that Firefox and IE do it correctly here.
>
> Hi Laurens. I did some related experiments a couple of years ago.
> http://srufaculty.sru.edu/david.dailey/javascript/showStuff.html
>
> In it IE and Opera seem to agree more than either agrees with FF. My 
> experiment is rather complicated so it may not make immediate sense. 
> Holler if it looks to be worth explaining -- I'm not really sure, but 
> when somebody gets around to looking at test cases, perhaps it will 
> prove useful.
>
> The reason for investigating it was that although I think <xmp> may be 
> deprecated, it seemed, as I recall that for some purposes it may have 
> been the only way to display certain kinds of markup without that 
> markup being intercepted by the browser, at least for some browsers. 

In Backbase, we use it as a container element for XML inside HTML (as 
the content is preserved as-is until the </xmp> end-delimited). That’s 
how we ran into the issue with Opera, which as you might imagine, was 
pretty annoying and resulted in a very dirty hack ^_^.


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san nan da!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.


Received on Wednesday, 2 May 2007 20:09:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:15:58 GMT