[bug?] IE11 html5 embedding __definegetter__ not supported

  • Hi,

    It seems there is a bug in krpano 1.17.5, when trying to use WebGL (html5 = always) when using Internet Explorer 11.

    In the function embedhtml5() IE11 gives the error: Object doesn't support property or method '__definegetter__'. When looking up the __definegetter__ method on MDN , it seems this function is deprecated and non standard and is not recommended to be used in any software. Possibly IE11 has dropped support for it, but I don't understand why there has been no mention of this bug before on the forums.

    Best regards,

    Laurens

  • Hi,

    you can please show your example?
    I can't see such bug in IE11 or any other IE version.

    Are there other scripts involved?

    The krpano HTML5 viewer implements the __defineGetter__ and __defineSetter__ functions by its own when they are not supported by the browser (like this is the case in IE).

    Best regards,
    Klaus

  • Hi,

    the problem is that you are forcing the IE to behave as IE8 - see this line in your html:

    Code
    <meta http-equiv="x-ua-compatible" content="IE=8" />


    but the problem - the IE8 doesn't support any 'HTML5'!

    Basically this would be no problem, the krpano embedding script would choose Flash in this case, but now you are also forcing the usage of the HTML5 viewer by using html5=always - and this is the result - trying to use HTML5 in IE8 - and this can't work.

    That means there is no bug - either remove that 'x-ua-compatible' setting or increase it to IE=11.
    Additionally the html5=always setting should be removed or replaced. The setting html5=always should be used only for internal testing, when only html5 should be used, the use html5=only - see here:

    https://krpano.com/docu/html/#html5

    Best regards,
    Klaus

  • Hi Klaus,

    Thank you. Indeed I was only testing to see whether IE11 was working with WebGL. Good call on the IE8 document mode. This is because some of the HTML and CSS was not behaving correctly when not setting this. But that is not your problem! Thanks again.

    Best regards,

    Laurens

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!