Does anyone have an idea how to detect the layout engine by javascript? We know Gecko is for FF and Trident is for IE (windows) and Tasman for IE(Mac), however how can we use
js to detect it directly, e.g by parsing the user agent string?
There's an indirect work around that we can infer the layout engine based on the browser type, version and OS, but I don't think this way is precise enough since the rule is not very strict. For example, maybe IE for mac will switch to another layout engine in the feature but no more Tasman.