No Code Attached Yet J3 Issue
avatar flashfs
flashfs
13 May 2016

Steps to reproduce the issue

Use an old browser version, like Firefox 24 or Internet Explorer 9. Access /administrator/index.php?option=com_config and go the the System tab.

Expected result

Cache time and Session time as input box, so we can enter a number.

Actual result

Cache time and Session time as select box without options.

System information (as much as possible)

screen shot 2016-05-13 at 08 37 37Versão do Banco de Dados 5.5.42-log
Colação do Banco de Dados utf8_unicode_ci
'Collation' da conexão com o banco de dados utf8_general_ci
Versão do PHP 5.5.30
Servidor Web Apache/2.2.15 (Red Hat)
Interface PHP com servidor Web apache2handler
Versão do Joomla Joomla! 3.5.1 Stable [ Unicorn ] 05-April-2016 22:45 GMT
Versão da Plataforma Joomla Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
Navegador do Usuário Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0

Additional comments

See the uploaded image.

avatar flashfs flashfs - open - 13 May 2016
avatar flashfs flashfs - change - 13 May 2016
The description was changed
avatar mbabker
mbabker - comment - 13 May 2016

The HTML5 fallback JavaScript converts <input type="number"> to a <select> field if the browser doesn't support it unconditionally. This makes sense if things like the min, max, and step attributes are set. But without these things this field should really degrade to a plain <input type="text">

avatar mbabker mbabker - change - 13 May 2016
The description was changed
avatar mbabker mbabker - change - 13 May 2016
Status New Confirmed
avatar brianteeman brianteeman - change - 13 May 2016
Labels Removed: ?
avatar brianteeman brianteeman - change - 13 May 2016
Labels Added: ?
avatar mbabker
mbabker - comment - 8 Jan 2017

@dgt41 something you could probably easily fix (assuming it's still an issue)

avatar dgt41
dgt41 - comment - 8 Jan 2017

@mbabker easy (but not optimised) fix:
replace https://github.com/joomla/joomla-cms/blob/staging/media/system/js/html5fallback-uncompressed.js#L410 with:

			if (min === max || min === "undefined" || max === "undefined") {
				$elem.prop("type", "text");
			} else {
				$elem.replaceWith( $select );
			}
avatar mbabker
mbabker - comment - 25 May 2017

This still needs a fix. The snippet posted above will apparently work for everything but IE8, because:

Attempting to change the type property (or attribute) of an input element created via HTML or already in an HTML document will result in an error being thrown by Internet Explorer 6, 7, or 8.

avatar dgt41
dgt41 - comment - 25 May 2017

In that case we need to create another element, copy the attributes from the old (except the type obviously) append it in the doc and then remove the old.

avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Nov 2017
The description was changed
Status Confirmed Discussion
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Nov 2017
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-05-22 10:44:04
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 22 May 2019
avatar alikon alikon - change - 22 May 2019
Closed_Date 2019-05-22 10:44:04 2019-05-22 10:44:05
Closed_By joomla-cms-bot alikon
Labels
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 May 2019

Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/10449

avatar alikon
alikon - comment - 22 May 2019

after something like 3 years i hope some more new browser are used
i'm going to close it.
it can be always reopened if it's still an issue


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/10449.

avatar alikon
alikon - comment - 22 May 2019

after something like 3 years i hope some more new browser are used
i'm going to close it.
it can be always reopened if it's still an issue


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/10449.

avatar mbabker
mbabker - comment - 22 May 2019

after something like 3 years i hope some more new browser are used

Still doesn't change the fact certain polyfills do not behave correctly for older browsers for which Joomla claims to support. Unless Joomla is now taking the stance of "only use the browsers I want you to use, which is something released this year" and ignoring enterprise environments that don't get to day-zero upgrade browsers as they push updates.

avatar alikon alikon - change - 22 May 2019
Status Closed Discussion
Closed_Date 2019-05-22 10:43:48
Closed_By alikon
Labels
avatar joomla-cms-bot joomla-cms-bot - change - 22 May 2019
Status Discussion New
Closed_Date 0000-00-00 00:00:00
Labels
avatar joomla-cms-bot joomla-cms-bot - reopen - 22 May 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 22 May 2019

Set to "open" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/10449

avatar alikon
alikon - comment - 22 May 2019

reopened


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/10449.

avatar alikon
alikon - comment - 22 May 2019

reopened


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/10449.

avatar alikon
alikon - comment - 22 May 2019

btw

Beginning January 12, 2016, only the most current version of Internet Explorer available for a supported operating system will receive technical supports and security updates. Internet Explorer 11 is the last version of Internet Explorer, and will continue to receive security updates, compatibility fixes, and technical support on Windows 7, Windows 8.1, and Windows 10.

avatar brianteeman
brianteeman - comment - 22 May 2019

@alikon It doesnt matter because of the stated browser support policy for j3

avatar alikon
alikon - comment - 22 May 2019

then we should change that policies in some way, i've quoted microsoft https://www.microsoft.com/en-us/windowsforbusiness/end-of-ie-support
i'm afraid that this issue can stay open from another 3 years without no progress ?

avatar mbabker
mbabker - comment - 22 May 2019

Then so be it. If something is a confirmed bug, realistically the only reasons to close it are because the bug is fixed or the project is acknowledging that the bug is something that it won't fix. Closing issues because "well, nobody ever came around to it so it can't be that important" doesn't send the best of messages. I've put in way too many hours dealing with PHP 5.3 specific problems, you don't get to close those issues out as "too old PHP, update you fool!" because Joomla still supports that version.

avatar mbabker
mbabker - comment - 22 May 2019

My point here is if Joomla says it's supporting a given environment and there's a confirmed bug in that environment, there's a responsibility to at some point fix the issue. Whether that's a priority is to be determined by whomever is taking the time to fix bugs in most cases. It could very well be nobody cares about fixing IE8 compat issues, but until IE8 support is dropped then the issue should stay open.

avatar alikon
alikon - comment - 22 May 2019

my fault here was that i've made a simply thinking that if Microsoft tell us in the 2016 don't use less than ie11 and i've missed to check browser support policy for j3

avatar mbabker
mbabker - comment - 22 May 2019

Most CMS' have a slower support policy than either the upstream software vendors (PHP, MySQL, PostgreSQL) or the clients used to interface with them (browsers). So sadly, the vendors saying "this is EOL" or "don't use this because we know it's old and garbage" doesn't apply to the CMS support policies.

(BTW, a browser or database upgrade nag would be great for a health check system like I've suggested should be part of com_admin for years now, WordPress' new Site Health feature is a good structure to duplicate)

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2019
Status New Discussion
avatar jwaisner jwaisner - change - 18 Jul 2020
Status Discussion Confirmed
avatar jwaisner
jwaisner - comment - 18 Jul 2020

Setting to confirmed as this is not a discussion at this point as it is has been confirmed as a bug prior to discussion tag.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/10449.

avatar dgrammatiko
dgrammatiko - comment - 19 Jul 2020

Replacing the numberType function with the following do the trick:

numberType: function( self, elem ) {
    var $elem = $( elem ),
        type = $elem.attr( 'type' ),
        isInput = /^input$/i.test( elem.nodeName ),
        isType = /^(number|range)$/i.test( type ),
        min, max, step, value, attributes, $select, $option, i;

    if ( !isInput || !isType || ( type == "number" && features.types.number ) || ( type == "range" && features.types.range ) ) {
        return;
    }

    min = parseInt( $elem.attr( 'min' ) );
    max = parseInt( $elem.attr( 'max' ) );
    step = parseInt( $elem.attr( 'step' ) );
    value = parseInt( $elem.attr( 'value' ) );
    attributes = $elem.prop("attributes");

    if (min === max || $elem.attr('min') === undefined || $elem.attr('max') === undefined || $elem.attr('step') === undefined) {
        $newElType = 'text';

        $newEl = $('<input>');

        $.each( attributes, function() {
            if (this.name !== 'type') {
               $newEl.attr( this.name, this.value );
            }
        });

        $newEl.prop("type", "text");
    } else {
        $newEl = $( '<select>' );
        min = isNaN( min ) ? -100 : min;

        for ( i = min; i <= max; i += step ) {
            $option = $( '<option value="' + i + '">' + i + '</option>' );

            if ( value == i || ( value > i && value < i + step ) ) {
                $option.attr( 'selected', '' );
            }

            $newEl.append( $option );
        }

        $.each( attributes, function() {
            $newEl.attr( this.name, this.value );
        });
    }

    $elem.replaceWith( $newEl );
},
avatar Hackwar Hackwar - change - 31 May 2022
Status Confirmed Closed
Closed_Date 2019-05-22 10:43:48 2022-05-31 14:09:11
Closed_By Hackwar
Labels Added: No Code Attached Yet
Removed: ?
avatar Hackwar Hackwar - close - 31 May 2022
avatar Hackwar
Hackwar - comment - 31 May 2022

Yes, this is a confirmed issue. However, after 6 years of not finding a solution and the affected browsers being absolutely EOL and not really used anywhere anymore, Joomla 3 approaching the end of its bugfix support lifetime as well, I'm closing this one as WONTFIX.

@flashfs thank you for reporting this and yes, it sucks that we couldn't react better on this report. We will try to do better in the future. I hope you will still support us. ?

Add a Comment

Login with GitHub to post a comment