Remove an ability to set higher JS versions via language attribute

RESOLVED FIXED in mozilla21

Status

()

Core
DOM
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: emk, Assigned: emk)

Tracking

({addon-compat, dev-doc-needed})

unspecified
mozilla21
addon-compat, dev-doc-needed
Points:
---
Bug Flags:
in-testsuite -

Firefox Tracking Flags

(relnote-firefox -)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

5 years ago
The language attribute is obsolete in HTML5 and "JavaScript" is the only speced value. It is ignored when the type attribute is present.
http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#obsolete-but-conforming-features
IE and Opera doesn't support language="JavaScript1.6" to  language="JavaScript1.8". Chrome recognize the language="JavaScript1.6" and language="JavaScript1.7", but no language extensions are enabled.
XUL doesn't support the language attribute, so it should have no add-on impact.
No in-tree consumers use the language attribute to enable language extensions.
(Assignee)

Comment 1

5 years ago
Created attachment 697450 [details] [diff] [review]
patch
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #697450 - Flags: review?(jonas)
Get rid of the outparam, please.
(Assignee)

Comment 3

5 years ago
Created attachment 697481 [details] [diff] [review]
patch v2

Removed the useless outparam.
According to the comment, the language attribute already lost the ability in HTML.

> XUL doesn't support the language attribute
And it looks like it was wrong.
Attachment #697450 - Attachment is obsolete: true
Attachment #697450 - Flags: review?(jonas)
Attachment #697481 - Flags: review?(jonas)
Attachment #697481 - Flags: review?(jonas) → review+
(Assignee)

Comment 4

4 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/fcb1d5ec2d60
Flags: in-testsuite-
https://hg.mozilla.org/mozilla-central/rev/fcb1d5ec2d60
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21

Updated

4 years ago
Keywords: dev-doc-needed
relnote-firefox: --- → ?

Updated

4 years ago
relnote-firefox: ? → -
I've added this bug to the compatibility doc. Please correct the info if I'm wrong.
https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_21
(Assignee)

Comment 7

4 years ago
(In reply to Kohei Yoshino from comment #6)
> I've added this bug to the compatibility doc. Please correct the info if I'm
> wrong.
> https://developer.mozilla.org/en-US/docs/Site_Compatibility_for_Firefox_21

The language attribute in HTML used to ignore the JS version before this bug. This bug is just a cleanup for Web pages.
On the other hand, XUL language attribute has changed the behavior. Therefore, this is a add-on compatibility bug (not site compatibility).
Oh, Okay. Removed this bug from the document.
Keywords: addon-compat
You need to log in before you can comment on or make changes to this bug.