From c8e1f01046727384700b8458e603627ccdfb7c56 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Mon, 11 Jan 2016 23:32:29 -0700 Subject: [PATCH] Remove references to IE 8 in docs --- docs/03-interactivity-and-dynamic-uis.md | 2 +- docs/08-working-with-the-browser.md | 45 +++--------------------- docs/ref-04-tags-and-attributes.md | 2 +- 3 files changed, 6 insertions(+), 43 deletions(-) diff --git a/docs/03-interactivity-and-dynamic-uis.md b/docs/03-interactivity-and-dynamic-uis.md index dc4a19c2..80ec0c84 100644 --- a/docs/03-interactivity-and-dynamic-uis.md +++ b/docs/03-interactivity-and-dynamic-uis.md @@ -36,7 +36,7 @@ ReactDOM.render( ## Event Handling and Synthetic Events -With React you simply pass your event handler as a camelCased prop similar to how you'd do it in normal HTML. React ensures that all events behave identically in IE8 and above by implementing a synthetic event system. That is, React knows how to bubble and capture events according to the spec, and the events passed to your event handler are guaranteed to be consistent with [the W3C spec](http://www.w3.org/TR/DOM-Level-3-Events/), regardless of which browser you're using. +With React you simply pass your event handler as a camelCased prop similar to how you'd do it in normal HTML. React ensures that all events behave similarly in all browsers by implementing a synthetic event system. That is, React knows how to bubble and capture events according to the spec, and the events passed to your event handler are guaranteed to be consistent with [the W3C spec](http://www.w3.org/TR/DOM-Level-3-Events/), regardless of which browser you're using. ## Under the Hood: Autobinding and Event Delegation diff --git a/docs/08-working-with-the-browser.md b/docs/08-working-with-the-browser.md index 1a7548fd..645f6685 100644 --- a/docs/08-working-with-the-browser.md +++ b/docs/08-working-with-the-browser.md @@ -12,7 +12,7 @@ React provides powerful abstractions that free you from touching the DOM directl React is very fast because it never talks to the DOM directly. React maintains a fast in-memory representation of the DOM. `render()` methods actually return a *description* of the DOM, and React can compare this description with the in-memory representation to compute the fastest way to update the browser. -Additionally, React implements a full synthetic event system such that all event objects are guaranteed to conform to the W3C spec despite browser quirks, and everything bubbles consistently and efficiently across browsers. You can even use some HTML5 events in IE8! +Additionally, React implements a full synthetic event system such that all event objects are guaranteed to conform to the W3C spec despite browser quirks, and everything bubbles consistently and efficiently across browsers. You can even use some HTML5 events in older browsers that don't ordinarily support them! Most of the time you should stay within React's "faked browser" world since it's more performant and easier to reason about. However, sometimes you simply need to access the underlying API, perhaps to work with a third-party library like a jQuery plugin. React provides escape hatches for you to use the underlying DOM API directly. @@ -53,45 +53,8 @@ _Mounted_ composite components also support the following method: * `component.forceUpdate()` can be invoked on any mounted component when you know that some deeper aspect of the component's state has changed without using `this.setState()`. -## Browser Support and Polyfills +## Browser Support -At Facebook, we support older browsers, including IE8. We've had polyfills in place for a long time to allow us to write forward-thinking JS. This means we don't have a bunch of hacks scattered throughout our codebase and we can still expect our code to "just work". For example, instead of seeing `+new Date()`, we can just write `Date.now()`. Since the open source React is the same as what we use internally, we've carried over this philosophy of using forward thinking JS. +React supports most popular browsers, including Internet Explorer 9 and above. -In addition to that philosophy, we've also taken the stance that we, as authors of a JS library, should not be shipping polyfills as a part of our library. If every library did this, there's a good chance you'd be sending down the same polyfill multiple times, which could be a sizable chunk of dead code. If your product needs to support older browsers, chances are you're already using something like [es5-shim](https://github.com/es-shims/es5-shim). - -### Polyfills Needed to Support Older Browsers - -`es5-shim.js` from [kriskowal's es5-shim](https://github.com/es-shims/es5-shim) provides the following that React needs: - -* `Array.isArray` -* `Array.prototype.every` -* `Array.prototype.forEach` -* `Array.prototype.indexOf` -* `Array.prototype.map` -* `Date.now` -* `Function.prototype.bind` -* `Object.keys` -* `String.prototype.split` -* `String.prototype.trim` - -`es5-sham.js`, also from [kriskowal's es5-shim](https://github.com/es-shims/es5-shim), provides the following that React needs: - -* `Object.create` -* `Object.freeze` - -The unminified build of React needs the following from [paulmillr's console-polyfill](https://github.com/paulmillr/console-polyfill). - -* `console.*` - -When using HTML5 elements in IE8 including `
`, `
`, `