You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Olaf Krueger <po...@olafkrueger.net> on 2017/08/12 18:10:05 UTC

[FlexJS] Browser compatibility

Hi,
I'd like to write some docs about the browser compatibility of FlexJS and
wonder how this technically works.
Is there some magic implemented within the compiler or is an external lib
used or is there whatever mechanism to ensure that the transpiled code works
fine with most of the browsers?

How we take care of being compatible with future browser versions.

Is an overview of supported browsers/versions available?

Thanks,
Olaf






--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Browser compatibility

Posted by Olaf Krueger <po...@olafkrueger.net>.
I've got it, thanks!

Olaf



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63866.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Browser compatibility

Posted by Harbs <ha...@gmail.com>.
Very often there’s more than one way to achieve a goal. When given a choice between approaches, I’d pick the one which has the best browser compatibility.

Given no other choice, I’d fall back to browser sniffing.

> On Aug 14, 2017, at 9:25 AM, Olaf Krueger <po...@olafkrueger.net> wrote:
> 
>> I found one work-around for one scenario and I’m investigating another for a
> different one. 
> What do you mean with work-around?
> Is it the approach to find some code that works with all browsers or do
> you're using browser sniffing (Class BrowserInfo as you mentioned above)?
> 
> Thanks,
> Olaf
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63861.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Browser compatibility

Posted by Olaf Krueger <po...@olafkrueger.net>.
>I found one work-around for one scenario and I’m investigating another for a
different one. 
What do you mean with work-around?
Is it the approach to find some code that works with all browsers or do
you're using browser sniffing (Class BrowserInfo as you mentioned above)?

Thanks,
Olaf





--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63861.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Browser compatibility

Posted by Harbs <ha...@gmail.com>.
You might have misunderstood me.

Thee are quite a few inconsistencies worked around already.

The advantage of the framework code is that we can include workarounds so end developers don’t need to.

For example:

Today I ran into flexbox inconsistencies in layouts. Safari behaves different than everyone else for nested flexboxes.

I found one work-around for one scenario and I’m investigating another for a different one.

Once I have the workarounds worked out, I will be able to fix the FlexJS layouts so it will work consistently across browsers.

Basically, we can treat cross-browser inconsistencies as bugs to be fixed on the framework level.

Harbs

> On Aug 13, 2017, at 10:36 PM, Olaf Krueger <po...@olafkrueger.net> wrote:
> 
>> There’s nothing really built in
> 
> Mhh... but I wonder if FlexJS can not guarantee consistency through
> different browsers and different platforms, could we really speak about a
> cross platform framework then?
> Or do I miss something?
> 
> Thanks,
> Olaf
> 
> 
> 
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63851.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Browser compatibility

Posted by Olaf Krueger <po...@olafkrueger.net>.
>There’s nothing really built in

Mhh... but I wonder if FlexJS can not guarantee consistency through
different browsers and different platforms, could we really speak about a
cross platform framework then?
Or do I miss something?

Thanks,
Olaf



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63851.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Browser compatibility

Posted by Harbs <ha...@gmail.com>.
There’s nothing really built in, but there is a class that does browser sniffing so it’s possible to write conditional code.

Check out BrowserInfo.

> On Aug 12, 2017, at 9:37 PM, Olaf Krueger <po...@olafkrueger.net> wrote:
> 
> And if there's nothing already implemented to ensure browser compatibility
> what could folks do if they have issues with some browsers?
> Is there something like a conditional compiling for different browsers?
> 
> Thanks,
> Olaf
> 
> 
> 
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63832.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.


Re: [FlexJS] Browser compatibility

Posted by Olaf Krueger <po...@olafkrueger.net>.
And if there's nothing already implemented to ensure browser compatibility
what could folks do if they have issues with some browsers?
Is there something like a conditional compiling for different browsers?

Thanks,
Olaf



--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63832.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Browser compatibility

Posted by Olaf Krueger <po...@olafkrueger.net>.
But what mechanism takes care of the compatibility with the main browsers
like IE, Edge, Chrome, Firefox, Safari and all those particular versions?
Or is there no magic needed and it just works for whatever needed?

Thanks,
Olaf




--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828p63831.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Browser compatibility

Posted by Harbs <ha...@gmail.com>.
I think it’s IE9 or later.

> On Aug 12, 2017, at 9:10 PM, Olaf Krueger <po...@olafkrueger.net> wrote:
> 
> Hi,
> I'd like to write some docs about the browser compatibility of FlexJS and
> wonder how this technically works.
> Is there some magic implemented within the compiler or is an external lib
> used or is there whatever mechanism to ensure that the transpiled code works
> fine with most of the browsers?
> 
> How we take care of being compatible with future browser versions.
> 
> Is an overview of supported browsers/versions available?
> 
> Thanks,
> Olaf
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Browser-compatibility-tp63828.html
> Sent from the Apache Flex Development mailing list archive at Nabble.com.