You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Felix Gonschorek (JIRA)" <ji...@apache.org> on 2013/11/29 18:18:35 UTC

[jira] [Created] (TAP5-2246) Internet Explorer 8 JavaScript Error in pageinit.js / development mode

Felix Gonschorek created TAP5-2246:
--------------------------------------

             Summary: Internet Explorer 8 JavaScript Error in pageinit.js / development mode
                 Key: TAP5-2246
                 URL: https://issues.apache.org/jira/browse/TAP5-2246
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.4
            Reporter: Felix Gonschorek
            Priority: Minor


pageinit.js:

the following code 

if (console.debugEnabled) {
 argsString = _.map(initArguments, JSON.stringify).join(", ");

raises an exception in Internet Explorer 8: "Invalid replacer argument". See http://msdn.microsoft.com/en-us/library/ie/cc836459(v=vs.94).aspx

The method "JSON.stringify" is natively implemented in IE 8 and it seems one can not use it as a parameter.

intermediate fix:

include in header of your border / layout component:

<!--[if IE 8]>
<script language="javascript">
document.getElementsByTagName("HTML")[0].removeAttribute("data-debug-enabled");
</script>
-->

long-term fix: unknown

hint: for debugging, www.browserstack.com is great!



--
This message was sent by Atlassian JIRA
(v6.1#6144)