Paul O’Shannessy
31302af804
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
Paul O’Shannessy
228a39d749
Fix failing test
...
PR #3494 was based on master before we shifted to using console.error. This
just fixes the new test case.
2015-03-25 12:15:41 -07:00
Jim
ef62055bae
Merge pull request #3494 from letiemble/B_Context_Rerender
...
Fix the context handling when updating a rendered component.
2015-03-25 11:55:35 -07:00
Aaron Gelter
3ade37e7a7
Added support for the 'low', 'high', and 'optimum' attributes that the <meter> tag requires.
2015-03-25 11:33:02 -06:00
Damien Pellier
f9fa01ca80
add scoped property to the list of DOM standard properties
2015-03-25 09:41:05 +01:00
Paul O’Shannessy
b1ab7da516
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
2a49451f00
Reordered properties to maintain ABC order
2015-03-24 20:43:55 +00:00
Ben Alpert
0bb8417338
Merge pull request #3502 from spicyj/tests
...
Fix tests after merge of #3440
2015-03-24 13:41:34 -07:00
Paul O’Shannessy
ef3cf42325
Merge pull request #3490 from chenglou/remove-class-addon
...
Remove classSet/cx
2015-03-24 13:39:47 -07:00
Ben Alpert
83718bff25
Fix tests after merge
...
Test Plan: jest
2015-03-24 13:37:39 -07:00
Ben Alpert
008c1744d0
Merge pull request #3467 from spicyj/valid-3
...
Validate node nesting, take 3
2015-03-24 13:30:16 -07:00
Ben Alpert
e5cb504e76
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
1836dceac6
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
Laurent Etiemble
03b4c57e8f
Fix the context handling when updating a rendered component.
2015-03-24 08:29:09 +01:00
Cheng Lou
1a6a558adb
Remove classSet/cx
2015-03-23 17:59:27 -04:00
Ben Alpert
cc93897c44
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
e4a32b6792
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
c30afad1c8
fix doc comments and typos
2015-03-20 18:21:29 +02:00
Ben Alpert
ec7080250e
Merge pull request #3442 from spicyj/kill-initializeTouchEvents
...
Kill React.initializeTouchEvents for good
2015-03-19 14:15:26 -07:00
Ben Alpert
037e9f6e35
More lint fixes
2015-03-17 14:17:03 -07:00
Ben Alpert
b505078d46
Merge pull request #3438 from spicyj/lint
...
Lint fixes
2015-03-17 14:14:57 -07:00
Ben Alpert
c788572a70
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
51bd677408
Add warning for getDOMNode calls.
2015-03-17 14:08:04 -07:00
Ben Alpert
c1275b882d
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
Ben Alpert
563d9c7b0b
Lint fixes
2015-03-17 13:30:15 -07:00
Ben Alpert
db166f2b73
Merge pull request #3430 from fourcolors/patch-1
...
fix grammar in comments
2015-03-17 11:08:40 -07:00
Mihai Parparita
864664fb03
Include the owner name when warning about createElement(null/undefined).
...
Makes it easier to find the callsite that needs to be fixed.
2015-03-16 22:05:29 -07:00
Sebastian Markbage
57d0690122
Don't use owner to determine statefulness
...
This reverts an early commit that made it so that elements from two
different owner in the same slot wouldn't share state.
That behavior was helpful, and we did hit a case which was solved by this.
However, this pattern is extremely uncommon. I've yet to even find the
original case, let alone any existing cases in our codebase.
Therefore, we're dropping this to simplify elements and enable new
optimizations.
2015-03-16 18:05:15 -07:00
Jim
dbb38e55a3
Added webcomponents.js and a simple unit test verifying a document fragment as a valid React container.
2015-03-16 16:37:05 -07:00
Jim
abc8de5a1c
Merge pull request #3169 from jsfb/mount-into-shadowdom
...
Allow rendering into document fragments. Fixes #840
2015-03-16 16:15:03 -07:00
Paul O’Shannessy
f287945ff8
Merge pull request #3395 from Simek/reactComponentExpect-cleanup
...
toBeDOMComponentWithChildCount readability
2015-03-16 16:14:48 -07:00
Sterling Cobb
086ec9f25c
fix grammer in comments
2015-03-16 17:10:14 -06:00
Paul O’Shannessy
d4700dbc9a
Ensure FullPageComponents are treated as DOM components
...
We currently override a couple DOM components. We need to ensure everything we
override is still treated as a DOM component, even if it has a composite
component wrapper.
2015-03-16 15:18:39 -07:00
Paul O’Shannessy
2d3f6fa4af
Merge pull request #3425 from zpao/fix-pure-test
...
Fix PureRender test to use providesModule
2015-03-16 15:14:26 -07:00
Ben Alpert
d6c5070a95
Merge pull request #3414 from spicyj/gh-3407
...
Fix up Perf a bit better for 0.13
2015-03-16 14:04:28 -07:00
Paul O’Shannessy
ea02719875
Fix PureRender test to use providesModule
2015-03-16 13:56:43 -07:00
Austin Wright
3e30824fd4
Appease eslint
2015-03-14 14:08:18 -07:00
Austin Wright
8ba59d8f2f
Move list of newline-eating tags to variable
2015-03-14 13:57:15 -07:00
Austin Wright
f2ebdc9f91
Add back \n-to-be-eaten for the plain-text elements
...
The comment hack to enable polyglot HTML isn't cross-browser, or simply doesn't work.
2015-03-14 13:53:12 -07:00
Austin Wright
b3b2498b60
Update tests to use Polyglot profile of HTML
2015-03-14 13:53:12 -07:00
Austin Wright
d4680cee1f
Use a Polyglot HTML-safe method of escaping leading newline in rawtext elements
2015-03-14 13:53:12 -07:00
Austin Wright
e62e350435
Generate XML-compatible tags and boolean attributes
2015-03-14 13:53:12 -07:00
Ben Alpert
6c7ffe12d4
Fix up Perf a bit better for 0.13
...
_mountImageIntoNode moved into ReactMount and wasn't being counted where it was supposed to be. In addition, all DOM elements are now wrapped in a composite wrapper but for the perf tools we want to skip over those or else we'll double-count (at least with the current accounting -- and that's effectively what we did before so this brings us back up to parity).
Fixes #3407 .
Test Plan:
Used the jsbin from #3407 and saw similar output from this branch and 0.12:

2015-03-13 18:51:53 -07:00
Paul O’Shannessy
b2b414e254
Merge pull request #3402 from vkramskikh/fix-empty-selects-with-value
...
Fix for empty <select> elements with value
2015-03-13 18:04:57 -07:00
Ben Alpert
82b5405d1a
Merge pull request #3412 from spicyj/gh-3329
...
Squash getDOMNode warning from isDOMComponent
2015-03-13 17:55:02 -07:00
Ben Alpert
ff199f0044
Squash getDOMNode warning from isDOMComponent
...
Fixes #3329 .
2015-03-13 17:11:02 -07:00
Robert Knight
3168df0ac9
Fix incorrect update of style when props.style transitions from null to non-null
...
ReactDOMComponent maintains a copy of the previous style
object to support in-place mutations of props.style.
This cached object was not cleared when the style
property was removed in a props update.
Fixes #3409
2015-03-13 22:16:19 +00:00
Vitaly Kramskikh
a5b37ecb64
Fix for empty <select> elements with value
...
There is an exception when value or defaultValue is set but there are no
children as ReactDOMSelect tries to mark the first children as selected
even if there are no children.
2015-03-13 21:48:02 +07:00
Sebastian Markbåge
2d54f16520
Merge pull request #3355 from cpojer/shallowCompare
...
Add shallowCompare module and use it in PureRenderMixin + tests
2015-03-12 17:45:22 -07:00
Bartosz Kaszubowski
3fa87d6162
toBeDOMComponentWithChildCount readability
2015-03-13 00:15:32 +01:00