By the proposed Conditional Syntax [Design Doc], conditions could be recursive (i.e. nested). For example, we can specify and conditions as elements of an or condition.
However, since allowing infinite nests may cause some problems in implementations, each browser will restrict the depth of nests and it will involve inconsistent behaviors between browsers.
I suggest having max recursion limits in the specification to avoid such confusion.
I agree to have maximum recursion limit. Do we also have a limit to conditions listed in or and and? I mean that or and and can take a list, and writing too long list can also be harmful.
By the proposed Conditional Syntax [Design Doc], conditions could be recursive (i.e. nested). For example, we can specify
and
conditions as elements of anor
condition. However, since allowing infinite nests may cause some problems in implementations, each browser will restrict the depth of nests and it will involve inconsistent behaviors between browsers. I suggest having max recursion limits in the specification to avoid such confusion.