[TYPO3-dev] IE compatibility problems due to outdated JS libs

Jigal van Hemert jigal.van.hemert at typo3.org
Tue Jan 28 09:41:50 CET 2014


Hi,

On 28-1-2014 8:23, Torben Hansen wrote:
> The problem:
> Drag and drop sorting of IRRE records relay on Scriptaculous and Prototype.
> Both JS libs in the current TYPO3 master are outdated and the included
> version of Prototype does not support IE9+. This leads to the situation,
> that drag and drop sorting of IRRE records is not possible in IE9, IE10 and
> IE11. Since a lot of business customers use IE, this problem should be
> fixed in the upcoming LTS, since drag and drop sorting is the only way to
> sort for example FAL media relations in the page module.
>
> I have filed a bugreport here http://forge.typo3.org/issues/51768 and did
> some debugging about this issue.
>
> Possible solutions:
> 1. Update Prototype to latest version
> Doing this, there will surely be other issues (beside the one I already
> found) with other TYPO3 backend components.

This will certainly lead you into the dark area of fixing a load of JS 
problems :-(

> 2. Keep Prototype 1.6.0.3 and just backport the code that fixes IE related
> click events
> Not very future safe.

No, but it will fix the click events. It may however introduce new 
issues as side effect.

> 3. Rewrite IRRE drag and drop sorting to rely on another JS sorting
> technique
> Maybe the best solution, but which JS framework should be used? JQuery UI?
> If it is just for the sorting, this is a very heavyweight solution. Or this
> one https://github.com/farhadi/html5sortable? Should work good, but seems
> unmaintained (22 pull requests).

Well, part of the "bring-jQuery-into-the-core" process should have been 
to rewrite the code that relied on prototype / scriptaculous and drop 
those libraries. Ideally ExtJS stuff should be moved to jQuery too 
(except probably the nice ExtDirect handling).

If you can migrate it to jQuery it will be a step forward. Otherwise 
fixing the clickevents would be my number two choice.

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list