Closed Bug 826166 Opened 12 years ago Closed 11 years ago

Remove an ability to set higher JS versions via language attribute

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21
Tracking Status
relnote-firefox --- -

People

(Reporter: emk, Assigned: emk)

Details

(Keywords: addon-compat, dev-doc-needed)

Attachments

(1 file, 1 obsolete file)

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.
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → VYV03354
Status: NEW → ASSIGNED
Attachment #697450 - Flags: review?(jonas)
Get rid of the outparam, please.
Attached patch patch v2Splinter Review
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)
https://hg.mozilla.org/mozilla-central/rev/fcb1d5ec2d60
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Keywords: dev-doc-needed
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
(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
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: