Javascript errors in editor when editing a macro

XMLWordPrintable

    • 2
    • Severity 3 - Minor

      Summary

      There are Javascript errors in Browser console when editing a macro.

      Environment

      Confluence 1000.1846.0

      Steps to Reproduce

      1. Create a new page and add any macro (e.g Status Macro)
      2. Open Browser's Developer Tools > Console Tab
      3. Edit the page, edit the Status Macro added on Step 1
      4. Browser Console will throw Javascript errors

      Expected Results

      • Editing the status macro is working fine, it should not throw any javascript errors on the Browser console.

      Actual Results

      • An error is thrown on the Browser's console when editing a macro
        batch.js?acjsFiveVersionEnabled=true&build-number=6452&confluence.table.resizable=true&externals=__local-default__&highlightactions=true&isSystemAdministrator=true&locale=en-GB:1943 Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1.
        at Editor.<anonymous> (https://d1ixbz5qgnvms3.cloudfront.net/test.atlassian.net/wiki/s/d41d8cd98f00b204e9800998ecf8427e-CDN/1377388096/h/3c62bf82c6ec2cf2c16e05369a6ee633/_/download/contextbatch/js/request-access-plugin,editor,macro-browser,-_super,-viewcontent,-main,-atl.general,-page,-browser-metrics-plugin.contrib,-atl.comments/batch.js?acjsFiveVersionEnabled=true&build-number=6452&confluence.table.resizable=true&externals=__local-default__&highlightactions=true&isSystemAdministrator=true&locale=en-GB:1943:408)
        at Dispatcher.dispatch (https://d1ixbz5qgnvms3.cloudfront.net/test.atlassian.net/wiki/s/d41d8cd98f00b204e9800998ecf8427e-CDN/1377388096/h/3c62bf82c6ec2cf2c16e05369a6ee633/_/download/contextbatch/js/request-access-plugin,editor,macro-browser,-_super,-viewcontent,-main,-atl.general,-page,-browser-metrics-plugin.contrib,-atl.comments/batch.js?acjsFiveVersionEnabled=true&build-number=6452&confluence.table.resizable=true&externals=__local-default__&highlightactions=true&isSystemAdministrator=true&locale=en-GB:1925:8)
        at DOMUtils.b (https://d1ixbz5qgnvms3.cloudfront.net/test.atlassian.net/wiki/s/d41d8cd98f00b204e9800998ecf8427e-CDN/1377388096/h/3c62bf82c6ec2cf2c16e05369a6ee633/_/download/contextbatch/js/request-access-plugin,editor,macro-browser,-_super,-viewcontent,-main,-atl.general,-page,-browser-metrics-plugin.contrib,-atl.comments/batch.js?acjsFiveVersionEnabled=true&build-number=6452&confluence.table.resizable=true&externals=__local-default__&highlightactions=true&isSystemAdministrator=true&locale=en-GB:2239:155)
        at HTMLDocument.e (https://d1ixbz5qgnvms3.cloudfront.net/test.atlassian.net/wiki/s/d41d8cd98f00b204e9800998ecf8427e-CDN/1377388096/h/3c62bf82c6ec2cf2c16e05369a6ee633/_/download/contextbatch/js/request-access-plugin,editor,macro-browser,-_super,-viewcontent,-main,-atl.general,-page,-browser-metrics-plugin.contrib,-atl.comments/batch.js?acjsFiveVersionEnabled=true&build-number=6452&confluence.table.resizable=true&externals=__local-default__&highlightactions=true&isSystemAdministrator=true&locale=en-GB:2072:195)
        

         

            Assignee:
            Unassigned
            Reporter:
            Janice Alor (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: