Laurence Rowe
cbfbb54c1d
omitClose for all void elements
...
According to http://www.w3.org/TR/html5/syntax.html#void-elements the following elements should not specify end tags:
area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
2014-02-25 20:03:16 -08:00
Ben Alpert
854d1f7c1b
Add update() to React.addons
2014-02-24 14:05:29 -08:00
Pete Hunt
b79a3cbd21
Break more browser deps in core
...
This is part of what Sebastian suggested. We require it into every component that explicitly needs it and inject it as a default mixin for composite components in
the browser environment. This change frees us up to inject everything in ReactComponent.
2014-02-20 16:55:17 -08:00
Jason Bonta
0790040aac
update docblock
...
...for typechecking.
2014-02-20 16:55:01 -08:00
Cheng Lou
7eb33ef176
simplify mountImageIntoNode's way of putting markup in innerHTML
...
Instead of removing the node from the document before changing its innerHTML, just do it directly.
The comment seems to be outdated for years. http://jsperf.com/detach-while-setting-innerhtml
2014-02-20 16:54:43 -08:00
Cheng Lou
5545887a48
Allow rendering markup string without checksum and React ID
...
This fixes https://github.com/facebook/react/pull/994 .
Also fixes https://github.com/facebook/react/issues/1079 .
Server-rendering without ID/checksum now works. Also won't call didMount.
2014-02-20 16:54:20 -08:00
Paul O’Shannessy
95edc396df
version bump to 0.10.0-alpha
2014-02-19 22:53:29 -08:00
Cheng Lou
e13977c0c2
Merge pull request #939 from spicyj/simulate-synthetic
...
Simulate synthetic events using ReactTestUtils
2014-02-19 10:58:54 -08:00
Ben Alpert
36e97bac21
Simulate synthetic events using ReactTestUtils
...
Most of the time this is what you want to do, so I've renamed what was Simulate to be SimulateNative.
Now Simulate.change does what you expect, so this fixes #517 and fixes #519 .
2014-02-19 00:04:16 -08:00
Pete Hunt
93e7778d5f
Merge pull request #1112 from petehunt/testutils-addons
...
Add ReactTestUtils to addons
2014-02-18 22:58:30 -08:00
petehunt
8122cadeb4
Add ReactTestUtils to addons
2014-02-18 22:54:24 -08:00
petehunt
cadd6cbb6c
add ReactCSSTransitionGroup to addons and document it
2014-02-18 22:47:53 -08:00
Paul O’Shannessy
f81d16960c
Merge pull request #1128 from spicyj/media-attrs
...
Add media element attributes
2014-02-18 18:04:43 -08:00
Paul O’Shannessy
8a47813baa
Update copyrights for 2014.
...
grep -rl 'Copyright 2013 Facebook' static_upstream | xargs perl -pi -w -e s/Copyright 2013 Facebook/Copyright 2013-2014 Facebook/g;'
Not going to check in a script to do this since it will just change every year.
Closes #1006
2014-02-18 17:06:43 -08:00
Paul O’Shannessy
792d8aca86
Merge pull request #1116 from spicyj/gh-1115
...
Add download and hrefLang attributes
2014-02-18 13:42:24 -08:00
Ben Alpert
112a20ce73
Add media element attributes
...
Fixes #1124 .
I didn't add `volume` because it requires more complicated logic to control properly and I didn't add `paused` because to set it we need to call play() or pause() -- perhaps a mutation method is appropriate.
2014-02-18 12:30:14 -08:00
Ben Alpert
d8fd1af4a0
Pool ancestors list so event system is reentrant
2014-02-17 16:37:15 -08:00
Ben Alpert
ae7e44ec84
Add download and hrefLang attributes
...
Fixes #1115 .
2014-02-17 15:13:14 -08:00
Ben Alpert
2f0bb69708
Prevent error thrown when removing event target
...
Fixes #1105 .
2014-02-17 10:33:34 -08:00
Paul O’Shannessy
9125f68194
0.9.0-rc1
2014-02-16 17:38:52 -08:00
Ben Alpert
1167aeb453
Expose cloneWithProps on addons
...
closes #1066
2014-02-16 14:08:05 -08:00
Paul O’Shannessy
6780b47526
Add CSSTransitionGroup to addons
...
Stealing part of #1059 .
2014-02-16 14:04:29 -08:00
Ben Newman
47ae865428
Make ReactWebWorker-test.js less flaky.
...
Two improvements: make sure we set `done = true` when an error message is
received, so that the test output contains the error message instead of
eventually timing out and displaying nothing useful; and increase the
timeout for this particular test from 5000ms (the default) to 20000ms.
2014-02-16 12:57:14 -05:00
Jason Bonta
9ba014fbf1
Merge pull request #1081 from spicyj/textcontent
...
Avoid innerText for better newline behavior
2014-02-15 02:22:54 -06:00
Cheng Lou
123ed1f442
Fix IE8 bug during unitless CSS props creation
...
IE8 goes into an infinite loop if we add props to the obj we're iterating through.
2014-02-14 12:41:44 -08:00
Ben Alpert
b98f1adf1a
Avoid innerText for better newline behavior
...
Fixes #1080 .
2014-02-13 21:31:32 -08:00
Jason Bonta
47645854f9
un-revert textContent, support multi-line strings in modern browsers
...
reverts 23ab30ff87 because the issue it fixed doesn't seem to be a problem
anymore. textContent should be better for more things anyway, as the
original 309a88bcf6 indicates. It should be faster because innerText
requires layout.
This also allows us to use strings with newlines in our rendered output
and have confidence that they will render the same on subsequent
re-renders. This is especially useful for es6-style backtick multi-line
strings. This will be more consistent as textContent is supported almost
everwhere so we won't have differing behavior between webkit and
firefox.
see https://github.com/facebook/react/issues/1080
2014-02-13 18:21:35 -08:00
Cheng Lou
5c953a7bdd
Remove aural CSS numerial styles from CSSProperties
...
Those styles are not implemented in known browsers.
2014-02-13 18:21:03 -08:00
Pete Hunt
6573a726ba
Merge pull request #1075 from spicyj/defperf
...
Measure root component render in ReactDefaultPerf
2014-02-13 10:49:19 -08:00
Pete Hunt
a5c518f69a
Merge pull request #855 from syranide/onerror
...
Add onError to ReactDOMImg to complement onLoad
2014-02-13 10:48:57 -08:00
Pete Hunt
f02c3c07d3
Merge pull request #1067 from spicyj/sandbox-seamless
...
Add seamless and sandbox properties for iframe
2014-02-13 10:48:37 -08:00
Pete Hunt
b04df6335a
Merge pull request #1069 from spicyj/gh-1028
...
Assert that event listeners are real functions
2014-02-13 10:48:20 -08:00
Andreas Svensson
cda1d8c779
Add onError to ReactDOMImg to complement onLoad
2014-02-13 10:43:03 +01:00
Ben Alpert
cd87848b7d
Don't warn about onChange for button inputs
2014-02-13 01:16:37 -08:00
Ben Alpert
55be7a71c5
Measure root component render in ReactDefaultPerf
...
Fixes #1074 .
2014-02-13 00:59:02 -08:00
Ben Alpert
b0757c5182
Assert that event listeners are real functions
...
Fixes #1028 .
2014-02-12 23:21:46 -08:00
Ben Alpert
d0502cf3c1
Add seamless and sandbox properties for iframe
...
Fixes #1057 .
2014-02-12 21:06:43 -08:00
Jason Bonta
5abcce5343
add lineClamp, vendor prefixes to CSSProperty.isUnitlessNumber
2014-02-12 16:35:09 -08:00
Pete Hunt
439bca78ed
[perf] New ReactDefaultPerf
...
Simplified version of https://github.com/facebook/react/pull/962 . More goodies coming soon since the inclusive time isn't very helpful right now.
2014-02-12 12:30:02 -08:00
Pete Hunt
a6749a686f
[perf] Change how ReactDefaultPerf is injected
...
ReactDefaultPerf should inject itself when require()'d. This continues to support the ?react_perf use case for logging on initial page load.
2014-02-12 12:29:00 -08:00
Pete Hunt
d547374847
[perf] Log DOM time
...
Log the time it takes to perform all DOM operations
2014-02-12 12:27:53 -08:00
Paul O’Shannessy
49747347fb
Merge pull request #1048 from spicyj/form-onreset
...
Add onReset event for forms
2014-02-11 14:42:15 -08:00
Sebastian Markbage
fc2805fe03
Add warnings when accessing properties/methods on unmounted components
...
This creates a membrane around the React component prototype. It warns if you
try to access properties on the component before it's unmounted. Before it's
mounted, it should be considered a descriptor and not an actual instance.
The workaround, for unknown types, is to access the constructor using
component.type which has static methods on it.
2014-02-11 09:13:03 -08:00
Pete Hunt
c544b01cad
Delete useless shit in ReactMount
...
lol
2014-02-10 14:31:15 -08:00
Pete Hunt
5f1d4d7c14
ReactInjection
...
Consolidate everything we can inject in core into one place. Does not expose publicly -- this is an internal moving of shit around.
2014-02-10 14:30:59 -08:00
Paul O’Shannessy
c1c2dd9a89
Add noValidate and corresponding formNoValidate
...
Fixes #988
2014-02-10 12:01:28 -08:00
Paul O’Shannessy
acfef143ae
Merge pull request #1045 from spicyj/srcdoc
...
Add HTML5 srcdoc property for iframes
2014-02-10 12:00:43 -08:00
Ben Alpert
30fd3a30b0
Add onReset event for forms
...
Test Plan:
Tested in Chrome and IE8.
2014-02-10 11:12:26 -08:00
Ben Alpert
40547125f8
Add HTML5 srcdoc property for iframes
2014-02-09 21:03:37 -08:00
Paul O'Shannessy
26fb009e0c
fix comment
2014-02-07 13:51:39 -08:00