Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2246

Internet Explorer 8 JavaScript Error in pageinit.js / development mode

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Version: 5.4 alpha 29
      Browser: Windows XP / Internet Explorer 8

      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!

        Attachments

          Activity

            People

            • Assignee:
              jkemnade Jochen Kemnade
              Reporter:
              felixgonschorek Felix Gonschorek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: