There is no problem if the page is served as text/html or
application/xhtml+xml, but 'body' has been a valid object in previous
versions of Opera when served documents as application/xml pages, and also
in Firefox.
Hardly a major problem but I happened to view a document under these
circumstances and noticed the Javascript wasn't running so I thought I'd
mention it in case it wasn't an intentional change in the new Javascript
interpretor.
I've no clue if this was intended or an accidental change, please file a
bug report so someone knowledgable can take a look :)
--
Rijk van Geijtenbeek
Opera Software ASA, Documentation & QA
Tweak: http://my.opera.com/Rijk/blog/
>Op Thu, 25 Oct 2007 19:15:36 +0200 schreef Eik <epo...@yahoo.co.ukayxxx>:
>
>> If an XHTML document is served to Opera 9.50 beta 1 as application/xml,
>> then Javascript recognises window.document as an object but not
>> window.document.body (it returns 'undefined').
>>
>> There is no problem if the page is served as text/html or
>> application/xhtml+xml, but 'body' has been a valid object in previous
>> versions of Opera when served documents as application/xml pages, and
>> also in Firefox.
>>
>> Hardly a major problem but I happened to view a document under these
>> circumstances and noticed the Javascript wasn't running so I thought I'd
>> mention it in case it wasn't an intentional change in the new Javascript
>> interpretor.
>
>I've no clue if this was intended or an accidental change, please file a
>bug report so someone knowledgable can take a look :)
Looks like you filed bug 293447 on this issue. Thank you! We'll take
a look at it.
--
Tim Altman
Desktop QA
Opera Software
Remove NO SPAM from e-mail address to reply