Page MenuHomePhabricator

OOjs: Document features that need a polyfill in ES3 and recommended a shim
Closed, ResolvedPublic

Description

oojs uses ES5 features such as Object.create, which are only supported in recent browsers (e.g. IE10 and up). oojs should incorporate or at least recommend a polyfill or shim that implements needed features on less advanced browsers. See https://www.mediawiki.org/wiki/Ooui#Browser_compatibility


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=66390

Details

Reference
bz56341

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:19 AM
bzimport added a project: OOjs core.
bzimport set Reference to bz56341.

(In reply to Matthew Flaschen from comment #1)

https://kangax.github.io/compat-table/es5/ and
http://blogs.msdn.com/b/ie/archive/2010/06/25/enhanced-scripting-in-ie9-
ecmascript-5-support-and-more.aspx both indicate IE9 supports almost all of
ECMAScript 5 (everything but strict mode)

Is that correct?

Yes; we're waiting on bug 66390 to be resolved so that we can provide a shim for IE7 and IE8 for OOjs and OOjs UI.

Change 140436 had a related patch set uploaded by Krinkle:
Implement support for ES3 browsers (tests passing in IE8!)

https://gerrit.wikimedia.org/r/140436

Change 140436 merged by jenkins-bot:
Implement support for ES3 browsers (tests passing in IE6-8!)

https://gerrit.wikimedia.org/r/140436