[GeoNetwork-users] Problems with MSIE9: Object doesn't support property or method 'createContextualFragment'

G'Day all,
We've been under very active development over the past few weeks and suddenly remembered to check the facility in MSIE (it's soooo easy to 'forget'!)...
To our horror, we found that GeoNetwork fails to render the page in MSIE9 (under the login div). If you run MSIE, the unfortunate situation is visible here: http://atlas.track.gov.au:8080/geonetwork

Opening the MSIE console, I can see this error:
SCRIPT438: Object doesn't support property or method 'createContextualFragment'
ext-all.js, line 35 character 108

Thrown at this line (35) of ext.js:
var range=el.ownerDocument.createRange();var frag;switch(where){case"beforebegin":range.setStartBefore(el);frag=range.createContextualFragment(html);el.parentNode.insertBefore(frag,el);return el.previousSibling;case"afterbegin":if(el.firstChild){range.setStartBefore(el.firstChild);frag=range.createContextualFragment(html);el.insertBefore(frag,el.firstChild);return el.firstChild;}else{el.innerHTML=html;return el.firstChild;}

There's a seemingly on-topic bug reported closed/fixed (??) here: http://trac.osgeo.org/geonetwork/ticket/522
We have the <meta http-equiv="X-UA-Compatible" content="IE=8" /> dropped in to the parent page, but GN is running in an iFrame. So we'd need to add this to the GN page template xsl I suppose...?

Questions:
1: Is #522 really describing our problem? Seems to be since if I set MSIE to 8 or 7 we get a result.
2: Has this not been addressed in GN releases over the 5mons since reported/closed in the trac site?
3: If we need to apply this meta tag manually now, where would it be best inserted?

I've tried dropping it on line 26 of the header.xsl file and restarting TomCat, but--even though I can now see the meta statement coming through in source on the page here: http://atlas.track.gov.au:8080/geonetwork/srv/en/main.home -- the page still fails to render in MSIE9 (Win7/64bit)

Could any kind soul point us in the general direction of a fix or further troubleshooting?
Kind regards,
JB

--
----
John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 802 Townsville, QLD 4810

M: 0407 471 565 | P: 07 3103 0574
Skype: boabjohn | Twitter: @boabjohn

Howdy Jose,

Thanks for the hint, but still no joy.

I've got the meta tag in the spot you recommend below (line 10 in my header.xsl)

and we get this in the rendered source:

>>>>>>>>>>>>>
<!DOCTYPE html
   PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="X-UA-Compatible" content="IE=8">
<<<<<<<<<<<<<

I assume the content type tag is getting some sort of hardwired priority during page rendering. Could that be the issue (ie, the MSIE8 meta tag comes after the characterset tag)??

Also note that MSIE9 provides developer tools with version emulation: here I can set to MSIE8 and the GN page renders fine.

Any further ideas?

Thanks in advance!

JB

On 31/10/2011 9:42 PM, jose garcia wrote:

Hi John

I see in your site, that the meta tag for this is not in the head first element (see this about explanation http://evolpin.wordpress.com/tag/html1115/)

Check the file header.xsl contains the meta tag in this location:

<xsl:template name="header">
<meta http-equiv="X-UA-Compatible" content="IE=8"/>

This should fix the issue.

Regards,
Jose García

On Mon, Oct 31, 2011 at 3:53 AM, John Brisbin <john@anonymised.com <mailto:john@anonymised.com>> wrote:

    G'Day all,
    We've been under very active development over the past few weeks and
    suddenly remembered to check the facility in MSIE (it's soooo easy to
    'forget'!)...
    To our horror, we found that GeoNetwork fails to render the page in
    MSIE9 (under the login div). If you run MSIE, the unfortunate
    situation
    is visible here: http://atlas.track.gov.au:8080/geonetwork

    Opening the MSIE console, I can see this error:
    SCRIPT438: Object doesn't support property or method
    'createContextualFragment'
    ext-all.js, line 35 character 108

    Thrown at this line (35) of ext.js:
    var range=el.ownerDocument.createRange();var
    frag;switch(where){case"beforebegin":range.setStartBefore(el);frag=range.createContextualFragment(html);el.parentNode.insertBefore(frag,el);return
    el.previousSibling;case"afterbegin":if(el.firstChild){range.setStartBefore(el.firstChild);frag=range.createContextualFragment(html);el.insertBefore(frag,el.firstChild);return
    el.firstChild;}else{el.innerHTML=html;return el.firstChild;}

    There's a seemingly on-topic bug reported closed/fixed (??) here:
    http://trac.osgeo.org/geonetwork/ticket/522
    We have the <meta http-equiv="X-UA-Compatible" content="IE=8" />
    dropped
    in to the parent page, but GN is running in an iFrame. So we'd need to
    add this to the GN page template xsl I suppose...?

    Questions:
    1: Is #522 really describing our problem? Seems to be since if I set
    MSIE to 8 or 7 we get a result.
    2: Has this not been addressed in GN releases over the 5mons since
    reported/closed in the trac site?
    3: If we need to apply this meta tag manually now, where would it be
    best inserted?

    I've tried dropping it on line 26 of the header.xsl file and
    restarting
    TomCat, but--even though I can now see the meta statement coming
    through in source on the page here:
    http://atlas.track.gov.au:8080/geonetwork/srv/en/main.home -- the page
    still fails to render in MSIE9 (Win7/64bit)

    Could any kind soul point us in the general direction of a fix or
    further troubleshooting?
    Kind regards,
    JB

    --
    ----
    John Brisbin
    Managing Director, BoaB interactive Pty Ltd
    POB 802 Townsville, QLD 4810

    M: 0407 471 565 | P: 07 3103 0574
    Skype: boabjohn | Twitter: @boabjohn

    ------------------------------------------------------------------------------
    Get your Android app more play: Bring it to the BlackBerry PlayBook
    in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
    for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and
    simple
    it is! http://p.sf.net/sfu/android-dev2dev
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

--
----
John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 802 Townsville, QLD 4810

M: 0407 471 565 | P: 07 3103 0574
Skype: boabjohn | Twitter: @boabjohn

Jose, my apologies...I was using the metatag from the trac issue tracker...the blog site you pointed to had a slightly different syntax:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >

I've popped that in and we're rocking! http://atlas.track.gov.au:8080/geonetwork

Thanks hugely for your assistance.

JB

On 31/10/2011 9:59 PM, John Brisbin wrote:

Howdy Jose,

Thanks for the hint, but still no joy.

I've got the meta tag in the spot you recommend below (line 10 in my
header.xsl)

and we get this in the rendered source:

  >>>>>>>>>>>>>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META HTTP-EQUIV="X-UA-Compatible" content="IE=8">
<<<<<<<<<<<<<

I assume the content type tag is getting some sort of hardwired priority
during page rendering. Could that be the issue (ie, the MSIE8 meta tag
comes after the characterset tag)??

Also note that MSIE9 provides developer tools with version emulation:
here I can set to MSIE8 and the GN page renders fine.

Any further ideas?

Thanks in advance!

JB

On 31/10/2011 9:42 PM, jose garcia wrote:

Hi John

I see in your site, that the meta tag for this is not in the head
first element (see this about explanation
http://evolpin.wordpress.com/tag/html1115/)

Check the file header.xsl contains the meta tag in this location:

<xsl:template name="header">
<meta http-equiv="X-UA-Compatible" content="IE=8"/>

This should fix the issue.

Regards,
Jose García

On Mon, Oct 31, 2011 at 3:53 AM, John Brisbin<john@anonymised.com
<mailto:john@anonymised.com>> wrote:

     G'Day all,
     We've been under very active development over the past few weeks and
     suddenly remembered to check the facility in MSIE (it's soooo easy to
     'forget'!)...
     To our horror, we found that GeoNetwork fails to render the page in
     MSIE9 (under the login div). If you run MSIE, the unfortunate
     situation
     is visible here: http://atlas.track.gov.au:8080/geonetwork

     Opening the MSIE console, I can see this error:
     SCRIPT438: Object doesn't support property or method
     'createContextualFragment'
     ext-all.js, line 35 character 108

     Thrown at this line (35) of ext.js:
     var range=el.ownerDocument.createRange();var
     frag;switch(where){case"beforebegin":range.setStartBefore(el);frag=range.createContextualFragment(html);el.parentNode.insertBefore(frag,el);return
     el.previousSibling;case"afterbegin":if(el.firstChild){range.setStartBefore(el.firstChild);frag=range.createContextualFragment(html);el.insertBefore(frag,el.firstChild);return
     el.firstChild;}else{el.innerHTML=html;return el.firstChild;}

     There's a seemingly on-topic bug reported closed/fixed (??) here:
     http://trac.osgeo.org/geonetwork/ticket/522
     We have the<meta http-equiv="X-UA-Compatible" content="IE=8" />
     dropped
     in to the parent page, but GN is running in an iFrame. So we'd need to
     add this to the GN page template xsl I suppose...?

     Questions:
     1: Is #522 really describing our problem? Seems to be since if I set
     MSIE to 8 or 7 we get a result.
     2: Has this not been addressed in GN releases over the 5mons since
     reported/closed in the trac site?
     3: If we need to apply this meta tag manually now, where would it be
     best inserted?

     I've tried dropping it on line 26 of the header.xsl file and
     restarting
     TomCat, but--even though I can now see the meta statement coming
     through in source on the page here:
     http://atlas.track.gov.au:8080/geonetwork/srv/en/main.home -- the page
     still fails to render in MSIE9 (Win7/64bit)

     Could any kind soul point us in the general direction of a fix or
     further troubleshooting?
     Kind regards,
     JB

     --
     ----
     John Brisbin
     Managing Director, BoaB interactive Pty Ltd
     POB 802 Townsville, QLD 4810

     M: 0407 471 565 | P: 07 3103 0574
     Skype: boabjohn | Twitter: @boabjohn

     ------------------------------------------------------------------------------
     Get your Android app more play: Bring it to the BlackBerry PlayBook
     in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
     for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and
     simple
     it is! http://p.sf.net/sfu/android-dev2dev
     _______________________________________________
     GeoNetwork-users mailing list
     GeoNetwork-users@lists.sourceforge.net
     <mailto:GeoNetwork-users@lists.sourceforge.net>
     https://lists.sourceforge.net/lists/listinfo/geonetwork-users
     GeoNetwork OpenSource is maintained at
     http://sourceforge.net/projects/geonetwork

--
----
John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 802 Townsville, QLD 4810

M: 0407 471 565 | P: 07 3103 0574
Skype: boabjohn | Twitter: @boabjohn

Hi John

I'll test again and update. I did some tests with actual value and seemed
ok.

Thanks and regards,
Jose García

On Mon, Oct 31, 2011 at 12:07 PM, John Brisbin <john@anonymised.com> wrote:

Jose, my apologies...I was using the metatag from the trac issue
tracker...the blog site you pointed to had a slightly different syntax:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" >

I've popped that in and we're rocking!
http://atlas.track.gov.au:8080/geonetwork

Thanks hugely for your assistance.

JB

On 31/10/2011 9:59 PM, John Brisbin wrote:
> Howdy Jose,
>
> Thanks for the hint, but still no joy.
>
> I've got the meta tag in the spot you recommend below (line 10 in my
> header.xsl)
>
> and we get this in the rendered source:
>
> >>>>>>>>>>>>>
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> <META HTTP-EQUIV="X-UA-Compatible" content="IE=8">
> <<<<<<<<<<<<<
>
> I assume the content type tag is getting some sort of hardwired priority
> during page rendering. Could that be the issue (ie, the MSIE8 meta tag
> comes after the characterset tag)??
>
> Also note that MSIE9 provides developer tools with version emulation:
> here I can set to MSIE8 and the GN page renders fine.
>
> Any further ideas?
>
> Thanks in advance!
>
> JB
>
>
> On 31/10/2011 9:42 PM, jose garcia wrote:
>> Hi John
>>
>> I see in your site, that the meta tag for this is not in the head
>> first element (see this about explanation
>> http://evolpin.wordpress.com/tag/html1115/)
>>
>> Check the file header.xsl contains the meta tag in this location:
>>
>> <xsl:template name="header">
>> <meta http-equiv="X-UA-Compatible" content="IE=8"/>
>>
>> This should fix the issue.
>>
>> Regards,
>> Jose García
>>
>> On Mon, Oct 31, 2011 at 3:53 AM, John Brisbin<john@anonymised.com
>> <mailto:john@anonymised.com>> wrote:
>>
>> G'Day all,
>> We've been under very active development over the past few weeks
and
>> suddenly remembered to check the facility in MSIE (it's soooo easy
to
>> 'forget'!)...
>> To our horror, we found that GeoNetwork fails to render the page in
>> MSIE9 (under the login div). If you run MSIE, the unfortunate
>> situation
>> is visible here: http://atlas.track.gov.au:8080/geonetwork
>>
>> Opening the MSIE console, I can see this error:
>> SCRIPT438: Object doesn't support property or method
>> 'createContextualFragment'
>> ext-all.js, line 35 character 108
>>
>> Thrown at this line (35) of ext.js:
>> var range=el.ownerDocument.createRange();var
>>
frag;switch(where){case"beforebegin":range.setStartBefore(el);frag=range.createContextualFragment(html);el.parentNode.insertBefore(frag,el);return
>>
el.previousSibling;case"afterbegin":if(el.firstChild){range.setStartBefore(el.firstChild);frag=range.createContextualFragment(html);el.insertBefore(frag,el.firstChild);return
>> el.firstChild;}else{el.innerHTML=html;return el.firstChild;}
>>
>> There's a seemingly on-topic bug reported closed/fixed (??) here:
>> http://trac.osgeo.org/geonetwork/ticket/522
>> We have the<meta http-equiv="X-UA-Compatible" content="IE=8" />
>> dropped
>> in to the parent page, but GN is running in an iFrame. So we'd
need to
>> add this to the GN page template xsl I suppose...?
>>
>> Questions:
>> 1: Is #522 really describing our problem? Seems to be since if I
set
>> MSIE to 8 or 7 we get a result.
>> 2: Has this not been addressed in GN releases over the 5mons since
>> reported/closed in the trac site?
>> 3: If we need to apply this meta tag manually now, where would it
be
>> best inserted?
>>
>> I've tried dropping it on line 26 of the header.xsl file and
>> restarting
>> TomCat, but--even though I can now see the meta statement coming
>> through in source on the page here:
>> http://atlas.track.gov.au:8080/geonetwork/srv/en/main.home -- the
page
>> still fails to render in MSIE9 (Win7/64bit)
>>
>> Could any kind soul point us in the general direction of a fix or
>> further troubleshooting?
>> Kind regards,
>> JB
>>
>> --
>> ----
>> John Brisbin
>> Managing Director, BoaB interactive Pty Ltd
>> POB 802 Townsville, QLD 4810
>>
>> M: 0407 471 565 | P: 07 3103 0574
>> Skype: boabjohn | Twitter: @boabjohn
>>
>>
>>
------------------------------------------------------------------------------
>> Get your Android app more play: Bring it to the BlackBerry PlayBook
>> in minutes. BlackBerry App World&#153; now supports Android&#153;
Apps
>> for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and
>> simple
>> it is! http://p.sf.net/sfu/android-dev2dev
>> _______________________________________________
>> GeoNetwork-users mailing list
>> GeoNetwork-users@lists.sourceforge.net
>> <mailto:GeoNetwork-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
>> GeoNetwork OpenSource is maintained at
>> http://sourceforge.net/projects/geonetwork
>>
>>

--
----
John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 802 Townsville, QLD 4810

M: 0407 471 565 | P: 07 3103 0574
Skype: boabjohn | Twitter: @boabjohn

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World&#153; now supports Android&#153; Apps
for the BlackBerry&reg; PlayBook&#153;. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork