I donβt use a prototype at present because I remember that the day I read the article which stated that Prototype is not supported in IE 7 and below, but I can not find this article again, but By the way, there were It would be nice to know how this is supported in general.
JScript (Microsoft's Javascript interpretation) supports the prototype property since version 2.0 ( MSDN ). The first version of Internet Explorer that supports JScript 2.0 was IE 3 ( MSDN ).
I would say that you are safe with IE7!
: , -, Node. IE >= 7, . perfectionkills.com.
Node
.prototype JS, Javascript. ECMA-262, 1999 :
.prototype
ECMAScript , , ++, Smalltalk Java, , , , . , . , . ; , ( "String" ) . . , String ( "String" ) , .
Prototype (1.7) :
Browser Version(s) Mozilla Firefox β₯ 1.5 Microsoft Internet Explorer for Windows β₯ 6.0 Apple Safari β₯ 2.0.4 Google Chrome β₯ 1.0 Opera β₯ 9.25
IE7 .
Prototype, , IE6 .
[EDIT]
. " Javascript", ? Javascript, (, String.Prototype.trim = function() {...}), , , , IE7.
String.Prototype.trim = function() {...}
According to the Prototype website , it is compatible with IE6 + and a number of other browsers. However, I rarely use it, so I cannot speak from experience.