1
0
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:
Joas Schilling
2011-07-08 12:33:29 +02:00
parent 7e4460dbc9
commit e0bb46c852
3 changed files with 15 additions and 9 deletions

View File

@@ -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();