Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

document.body in XML documents (9.50 beta 1)

1 view
Skip to first unread message

Eik

unread,
Oct 25, 2007, 1:15:36 PM10/25/07
to
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.

Rijk van Geijtenbeek

unread,
Oct 26, 2007, 8:05:00 AM10/26/07
to
Op Thu, 25 Oct 2007 19:15:36 +0200 schreef Eik <epo...@yahoo.co.ukayxxx>:

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/

Tim Altman

unread,
Nov 15, 2007, 7:46:19 PM11/15/07
to
On Fri, 26 Oct 2007 14:05:00 +0200, "Rijk van Geijtenbeek"
<ri...@opera.com> wrote:

>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

0 new messages