#13025 closed feature (notabug)
Can jQuery successfully execute in strict mode?
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I've added the use-strict directive at the beginning of the outermost function in the jQuery source:
(function( window, undefined ) { 'use strict';
Then, I've included this modified jQuery script to a web-page, and it executed without an error. So, jQuery core is able to initialize in strict mode successfully, but what about any changes in behavior? Can we expect jQuery to behave the same in strict mode?
What's your stance on this? Have you done testing in strict mode? When can we expect the use-strict directive to be included in jQuery core?
Note: See
TracTickets for help on using
tickets.
It's already in 1.9 pre-beta: http://code.jquery.com/jquery-git.js