Ben Alpert
8fa15080b2
Revert "Warn when multiple instances of React are loaded on the same page"
2015-04-10 12:34:04 -07:00
Paul O’Shannessy
71fdf09630
Revert "Add webkitdirectory and nwdirectory attributes for input file"
2015-04-10 10:22:52 -07:00
Gregory
5a7c6964cc
Add webkitdirectory and nwdirectory attributes for input file
...
Add attributes for <input type="file" />
* webkitdirectory
* nwdirectory
2015-04-10 09:51:54 -07:00
Isaac Salier-Hellendag
47b147f392
Skip SelectEventPlugin extraction if no listeners
...
If there are no listeners for `onSelect` yet, do not extract events. This way we can avoid issues where listeners have been set up for some event dependencies for `SelectEventPlugin`, but not all.
For instance, if `topMouseDown` has been registered but not `topMouseUp`, event extraction will set the `mouseDown` flag to true but never unset it. This leads to bugs when `onSelect` is registered and should be firing during normal key behavior. Since no `topMouseUp` has yet occurred to unset the flag, `onSelect` fails to fire.
2015-04-09 17:55:42 -05:00
Jim
f1cd867323
Merge pull request #3580 from robertknight/2402-warn-multiple-copies-of-react-on-same-page
...
Warn when multiple instances of React are loaded on the same page
2015-04-08 19:18:44 -07:00
Ben Alpert
44f0e801df
Merge pull request #3587 from spicyj/kill-plq
...
Kill ReactPutListenerQueue
2015-04-08 14:49:53 -07:00
Paul O’Shannessy
a34cf222ba
Merge pull request #3604 from Charca/firefox-tests-fixes
...
Fixes for several failing tests in Firefox and Safari
2015-04-08 10:34:57 -07:00
Baraa Hamodi
d9d77bc9a5
Update ReactDOMIframe-test.js
2015-04-08 13:06:37 -04:00
Ben Alpert
057f41ec0f
Merge pull request #3595 from spicyj/select-ssr
...
Fix server-side rendering of <select>
2015-04-07 16:49:10 -07:00
Ben Alpert
ea089fdfe6
Fix server-side rendering of <select>
...
Fixes #1398 .
2015-04-07 16:48:58 -07:00
Jan Kassens
eda9ec53b5
Fix for style not always reset when set to null
...
When the style property existed, but was set to null, `this._previousStyleCopy`
was not set back to `null` causing an old value to persist. This broke setting
the style to `null` the next time.
Fixes #3606 .
2015-04-07 12:17:06 -07:00
Maxi Ferreira
49745e7bff
Fixes for several failing tests in Firefox and Safari
2015-04-07 01:37:27 -03:00
Ben Alpert
7529e6de47
Kill ReactPutListenerQueue
...
As far as I can tell, this is almost equivalent and is simpler. When a component's componentDidMount is called, all the listeners for that subtree will have been attached which I think is all that matters.
2015-04-04 17:34:35 -07:00
Robert Knight
8ad58ae45a
Warn when multiple instances of React are loaded on the same page
...
This causes a variety of hard-to-debug issues.
See #2402 for examples.
Fixes #2402
2015-04-03 11:46:58 +01:00
Cheng Lou
f3e6436bee
Remove last call to getDOMNode in tests
2015-04-02 17:26:19 -04:00
Ben Alpert
dea7efbe16
Merge pull request #3555 from spicyj/native-overrides
...
Import ResponderEventPlugin from react-native
2015-04-02 14:13:35 -07:00
凌恒
6094ebbc39
update comment
2015-04-01 23:59:43 +08:00
凌恒
54a74d95bb
deal IE8 out of size error
2015-04-01 23:56:05 +08:00
凌恒
d4adaee4eb
use ie8 feature detect instead of try catch
2015-04-01 21:46:40 +08:00
凌恒
e1a8d69840
fix render order error in safari
2015-04-01 18:13:03 +08:00
Ben Alpert
036d342189
Fix unused variable lint from #3552
2015-03-31 17:06:42 -07:00
Ben Alpert
6ec3b65169
Import ResponderEventPlugin from react-native
...
This is a direct import of the files from react-native, with the license headers updated.
2015-03-31 15:21:47 -07:00
Paul O’Shannessy
94a3b0f8a3
Merge pull request #3552 from James-Dunn/fix-for-loops
...
Remove caching from for loops
2015-03-31 10:30:44 -07:00
James
90dcc1ffb7
Remove caching from for loops
...
Removed caching from for loops as it does not seem to increase
performance and makes the code harder to read.
2015-03-31 10:22:52 +04:00
Paul O’Shannessy
18d608820e
Merge pull request #3519 from jonchester/patch-1
...
Add IE-specific 'unselectable' attribute
2015-03-30 15:27:13 -07:00
jonchester
a0265fe8b7
Add IE-specific 'unselectable' attribute
...
I ended up needing to add this attribute to work around a common IE bug, that clicking on a scrollbar gives focus to the scroll container. I needed to set it as MUST_USE_ATTRIBUTE or the attribute would not be passed through by React successfully.
remove trailing spaces
2015-03-30 07:44:08 -07:00
Ben Alpert
7c6694987d
Tweak validation message, add html support
...
The old message made no sense if you had a > div > a or similar. I'm clearly feeling sloppy today.
2015-03-25 17:24:13 -07:00
Ben Alpert
07b7e8424d
Remove stray console.log comment
2015-03-25 17:06:42 -07:00
Ben Alpert
76bb96ef21
Validate only against problematic tag nesting
...
Turns out lots of people write invalid HTML all the time and no one, including your browser or React, cares. Most invalid HTML combinations don't cause magic reparented nodes; only some do. The HTML5 parsing spec (https://html.spec.whatwg.org/multipage/syntax.html ) specifies which tag combinations cause strange parsing behavior. I did my best to encode the logic here. It's more lenient than before in some cases, but more strict in others (before we didn't look at the whole stack of tags; now we warn with deeply nested `p` or `form` or `a` tags).
2015-03-25 16:43:41 -07:00
Paul O’Shannessy
27a191e704
Merge pull request #3513 from agelter/master
...
Added support for the 'low', 'high', and 'optimum' attributes that are missing from the <meter> tag.
2015-03-25 12:17:07 -07:00
Aaron Gelter
c9e82ce0f6
Added support for the 'low', 'high', and 'optimum' attributes that the <meter> tag requires.
2015-03-25 11:33:02 -06:00
Damien Pellier
3d45c0ad9d
add scoped property to the list of DOM standard properties
2015-03-25 09:41:05 +01:00
Paul O’Shannessy
09ecf8bca9
Merge pull request #3499 from sverrejoh/patch-1
...
Don't add 'px' to strokeDashoffset CSS Properties
2015-03-24 13:57:02 -07:00
Sverre Johansen
77abea5ddc
Reordered properties to maintain ABC order
2015-03-24 20:43:55 +00:00
Ben Alpert
6ad4afd404
Merge pull request #3502 from spicyj/tests
...
Fix tests after merge of #3440
2015-03-24 13:41:34 -07:00
Paul O’Shannessy
2795fb162a
Merge pull request #3490 from chenglou/remove-class-addon
...
Remove classSet/cx
2015-03-24 13:39:47 -07:00
Ben Alpert
4dde417214
Fix tests after merge
...
Test Plan: jest
2015-03-24 13:37:39 -07:00
Ben Alpert
9260b540ad
Merge pull request #3467 from spicyj/valid-3
...
Validate node nesting, take 3
2015-03-24 13:30:16 -07:00
Ben Alpert
1aa4e3c234
Merge pull request #3440 from spicyj/console-error
...
Use console.error to show stack trace in console
2015-03-24 13:30:01 -07:00
Sverre Johansen
c28059e39b
Don't add 'px' to strokeDashoffset CSS Properties
...
This is a SVG CSS Property. The standard expects values or percentages, and adding "px" to the value will break it.
http://www.w3.org/TR/SVG/painting.html#StrokeDashoffsetProperty
2015-03-24 17:52:02 +00:00
Cheng Lou
18ab88aa78
Remove classSet/cx
2015-03-23 17:59:27 -04:00
Ben Alpert
f9abf493b4
Validate node nesting, take 3
...
Nicer version of #644 and #735 . Fixes #101 . Context is neat.
2015-03-20 16:10:02 -07:00
Mert Kahyaoğlu
63aa7259b9
move getReactRootElementInContainer to ReactMount.js
...
getReactRootElementInContainer.js file contains one function used only
in ReactMount.js.
2015-03-20 20:50:11 +02:00
Mert Kahyaoğlu
0c1eca7dfc
fix doc comments and typos
2015-03-20 18:21:29 +02:00
Ben Alpert
7fe5a3aadd
Merge pull request #3442 from spicyj/kill-initializeTouchEvents
...
Kill React.initializeTouchEvents for good
2015-03-19 14:15:26 -07:00
Ben Alpert
a321247ee5
More lint fixes
2015-03-17 14:17:03 -07:00
Ben Alpert
26664315a6
Merge pull request #3438 from spicyj/lint
...
Lint fixes
2015-03-17 14:14:57 -07:00
Ben Alpert
9c4c2f58ea
Kill React.initializeTouchEvents for good
...
Now that #1169 is fixed, the only thing this is used for is to determine whether `onTouchTap` causes touch listeners to be added. The only internal uses of TapEventPlugin are where touch events are already initialized (so this doesn't make a difference) and we don't support `onTouchTap` as part of the public API so this should be safe.
2015-03-17 14:12:26 -07:00
cpojer
fb23276178
Add warning for getDOMNode calls.
2015-03-17 14:08:04 -07:00
Ben Alpert
e791fccf58
Use console.error to show stack trace in console
...
Better version of #3277 .
Test Plan: jest, grunt test
2015-03-17 13:39:04 -07:00