Bug #21369
closedJavaScript-Error with "useSortable => 1" with more than one inline element
0%
Description
With more than one element, inserted in an inline area (IRRE), I've got the following JavaScript-Error when I have enabled the useSortable ("useSortable => 1"):
An invalid or illegal string was specified" code: "12
typo3/contrib/prototype/prototype.js Line 2844
results = $A(root.querySelectorAll(e)).map(Element.extend);\n
Because of this error the JavaScript is stopped and so the values of other fields will stay empty and I cannot sort the inline elements.
With only one inserted element or with the disabled useSortable option I've got no error.
In earlier TYPO3 versions like 4.2.10 I've got no error, as well.
I hope this is only a small JavaScript error which can be easily fixed ...
(issue imported from #M12352)
Updated by Lee Perry about 15 years ago
Oh, I've realised now, that this seems to be a problem of modern browsers only, because this is a problem in Firefox 3.5.3, but not in Firefox 2.0.20 and a problem in IE8 mode but not in IE7 compatible mode and also a problem in Opera 10.0 ...
Updated by Oliver Hader about 15 years ago
Hi,
the problem can be found in CSS selectors modern browsers use (e.g. "#element.className") instead of using an elderly document.getByClassName(). You can try "0012327_v2.patch" of this issue #21349 which should solve these problems.
Updated by Lee Perry about 15 years ago
Hi,
sorry for the late response ...
the patch is working fine and the problems are solved.
thanx!