Confirming, but I believe we give higher priority to the Language attribute on purpose...
should change summary to something like "language attribute does not have priority" ?
ECMA does not specify that an unparenthesized = expression at the outermost level of an if condition should be rewritten as an == expression, that's a SpiderMonkey JS engine feature from long ago. It applies now only to non-ECMA versions such as JS1.2. I believe the language attribute does have precedence over type, so I'm not sure why things are busted here. I have a patch, not yet checked in, for an HTML 4.x compliance bug complaining about this precedence problem. The patch makes type trump language. But it's not checked in yet, and I've forgotten the bug number (was it on harishd's list?). Anyway, here's the patch. /be
Created attachment 82334 [details] [diff] [review] proposed fix Please help find the dup bug, and dup whichever way makes sense (if the older bug has no patch yet, dup it forward against this bug). Looking for r= and sr= so we can get this into the trunk, and consider for 1.0. /be
The older bug has this same patch, looks like. *** This bug has been marked as a duplicate of 135493 ***
Verified Duplicate -