Closed Bug 826166 Opened 7 years ago Closed 7 years ago

Remove an ability to set higher JS versions via language attribute


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

Not set



Tracking Status
relnote-firefox --- -


(Reporter: emk, Assigned: emk)


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


(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.
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
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)
Closed: 7 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.
(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.

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.