mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 10:44:20 +02:00
[ticket/10253] Fix IE9 handling in javascript, to correctly quote text.
Since IE9 IE supports textarea.selectionStart and window.getSelection. The only problem is, that the values are still incorrect. Therefore we need to ensure that it is still treated the old way, until IE fixes this completely. PHPBB3-10253
This commit is contained in:
@@ -200,7 +200,7 @@ function selectCode(a)
|
||||
// Get ID of code block
|
||||
var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
|
||||
|
||||
// Not IE
|
||||
// Not IE and IE9+
|
||||
if (window.getSelection)
|
||||
{
|
||||
var s = window.getSelection();
|
||||
|
Reference in New Issue
Block a user