[BUGFIX] Placeholder JavaScript handling is active for Non-IE browsers
authorOliver Hader <oliver@typo3.org>
Tue, 20 Nov 2012 23:36:49 +0000 (00:36 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 20 Nov 2012 23:39:46 +0000 (00:39 +0100)
The jsfunc.placeholder.js file was introduced to have a fallback
for Internet Explorer on the HTML5 placeholder feature. However,
this handling is currently active in all browsers and results in
broken NULL values for textarea, since textarea don't have a
human readable representation like input fields.

Fixes: #43183
Releases: 6.0
Thus, only activate the handling in Internet Explorer.

Change-Id: Ie27c8e8544fa99cad14f3a74fa960524cc7e834a
Reviewed-on: http://review.typo3.org/16644
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
typo3/jsfunc.placeholder.js

index b622524..6b4d06e 100644 (file)
 ***************************************************************/
 
 Ext.onReady(function() {
+       // Only use placeholder JavaScript fallback in Internet Explorer
+       if (!Ext.IE) {
+               return;
+       }
+
        // TODO rewrite in ExtJS
        $$('[placeholder]').each(function(el) {
                if (el.getAttribute('placeholder') != "") {