Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12094

IE11 JavaScript error when posting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 3.0.13-RC1
    • 3.0.12, 3.1.0-a2
    • Posting
    • None
    • Windows 7, Internet Explorer 11

      When creating a post or replying and clicking on the message textarea in Internet Explorer 11 the following JavaScript error is occurring in both 3.0.12 and 3.1:

      Line: 352
      Error: Unable to get property 'createRange' of undefined or null reference

      According to the debugger the error is happening in editor.js in the textEl.caretPos part of this:

      function storeCaret(textEl)
      {
      	if (textEl.createTextRange)
      	{
      		textEl.caretPos = document.selection.createRange().duplicate();
      	}
      }

      Code is pretty much the same for both 3.0.12 and 3.1.

            nickvergessen Joas Schilling
            DavidIQ David Colón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: