react-dom 15.6.0-rc.1 → 15.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/LICENSE +16 -26
  2. package/dist/react-dom-server.js +512 -702
  3. package/dist/react-dom-server.min.js +8 -10
  4. package/dist/react-dom.js +546 -757
  5. package/dist/react-dom.min.js +9 -11
  6. package/lib/ARIADOMPropertyConfig.js +3 -5
  7. package/lib/AutoFocusUtils.js +3 -5
  8. package/lib/BeforeInputEventPlugin.js +3 -5
  9. package/lib/CSSProperty.js +4 -5
  10. package/lib/CSSPropertyOperations.js +14 -14
  11. package/lib/CallbackQueue.js +3 -5
  12. package/lib/ChangeEventPlugin.js +4 -6
  13. package/lib/DOMChildrenOperations.js +3 -5
  14. package/lib/DOMLazyTree.js +3 -5
  15. package/lib/DOMNamespaces.js +3 -5
  16. package/lib/DOMProperty.js +3 -5
  17. package/lib/DOMPropertyOperations.js +3 -5
  18. package/lib/Danger.js +3 -5
  19. package/lib/DefaultEventPluginOrder.js +3 -5
  20. package/lib/EnterLeaveEventPlugin.js +3 -5
  21. package/lib/EventConstants.js +3 -5
  22. package/lib/EventPluginHub.js +3 -5
  23. package/lib/EventPluginRegistry.js +3 -5
  24. package/lib/EventPluginUtils.js +3 -5
  25. package/lib/EventPropagators.js +3 -5
  26. package/lib/FallbackCompositionState.js +3 -5
  27. package/lib/HTMLDOMPropertyConfig.js +4 -5
  28. package/lib/KeyEscapeUtils.js +3 -5
  29. package/lib/LinkedValueUtils.js +3 -5
  30. package/lib/PluginModuleType.js +3 -5
  31. package/lib/PooledClass.js +3 -5
  32. package/lib/ReactBrowserEventEmitter.js +3 -5
  33. package/lib/ReactChildFiber.js +3 -5
  34. package/lib/ReactChildReconciler.js +3 -5
  35. package/lib/ReactComponentBrowserEnvironment.js +3 -5
  36. package/lib/ReactComponentEnvironment.js +3 -5
  37. package/lib/ReactComponentTreeTestUtils.js +3 -5
  38. package/lib/ReactCompositeComponent.js +4 -6
  39. package/lib/ReactCoroutine.js +3 -5
  40. package/lib/ReactDOM.js +4 -5
  41. package/lib/ReactDOMComponent.js +8 -5
  42. package/lib/ReactDOMComponentFlags.js +3 -5
  43. package/lib/ReactDOMComponentTree.js +3 -5
  44. package/lib/ReactDOMContainerInfo.js +3 -5
  45. package/lib/ReactDOMEmptyComponent.js +3 -5
  46. package/lib/ReactDOMFeatureFlags.js +3 -5
  47. package/lib/ReactDOMFiber.js +3 -5
  48. package/lib/ReactDOMIDOperations.js +3 -5
  49. package/lib/ReactDOMInput.js +7 -6
  50. package/lib/ReactDOMInvalidARIAHook.js +3 -5
  51. package/lib/ReactDOMNullInputValuePropHook.js +3 -5
  52. package/lib/ReactDOMOption.js +3 -5
  53. package/lib/ReactDOMSelect.js +3 -5
  54. package/lib/ReactDOMSelection.js +3 -5
  55. package/lib/ReactDOMServer.js +3 -5
  56. package/lib/ReactDOMServerUMDEntry.js +3 -5
  57. package/lib/ReactDOMTextComponent.js +3 -5
  58. package/lib/ReactDOMTextarea.js +3 -5
  59. package/lib/ReactDOMTreeTraversal.js +3 -5
  60. package/lib/ReactDOMUMDEntry.js +3 -5
  61. package/lib/ReactDOMUnknownPropertyHook.js +3 -5
  62. package/lib/ReactDebugTool.js +3 -5
  63. package/lib/ReactDefaultBatchingStrategy.js +3 -5
  64. package/lib/ReactDefaultInjection.js +3 -5
  65. package/lib/ReactElementSymbol.js +3 -5
  66. package/lib/ReactEmptyComponent.js +3 -5
  67. package/lib/ReactErrorUtils.js +6 -6
  68. package/lib/ReactEventEmitterMixin.js +3 -5
  69. package/lib/ReactEventListener.js +3 -5
  70. package/lib/ReactFeatureFlags.js +3 -5
  71. package/lib/ReactFiber.js +3 -5
  72. package/lib/ReactFiberBeginWork.js +3 -5
  73. package/lib/ReactFiberCommitWork.js +3 -5
  74. package/lib/ReactFiberCompleteWork.js +3 -5
  75. package/lib/ReactFiberReconciler.js +3 -5
  76. package/lib/ReactFiberRoot.js +3 -5
  77. package/lib/ReactFiberScheduler.js +3 -5
  78. package/lib/ReactFiberUpdateQueue.js +3 -5
  79. package/lib/ReactHostComponent.js +3 -5
  80. package/lib/ReactHostOperationHistoryHook.js +3 -5
  81. package/lib/ReactInjection.js +3 -5
  82. package/lib/ReactInputSelection.js +3 -5
  83. package/lib/ReactInstanceMap.js +3 -5
  84. package/lib/ReactInstanceType.js +3 -5
  85. package/lib/ReactInstrumentation.js +3 -5
  86. package/lib/ReactInvalidSetStateWarningHook.js +3 -5
  87. package/lib/ReactMarkupChecksum.js +3 -5
  88. package/lib/ReactMount.js +3 -5
  89. package/lib/ReactMultiChild.js +3 -5
  90. package/lib/ReactMultiChildUpdateTypes.js +3 -5
  91. package/lib/ReactNodeTypes.js +3 -5
  92. package/lib/ReactOwner.js +3 -5
  93. package/lib/ReactPerf.js +3 -5
  94. package/lib/ReactPriorityLevel.js +5 -6
  95. package/lib/ReactPropTypeLocationNames.js +3 -5
  96. package/lib/ReactPropTypeLocations.js +3 -5
  97. package/lib/ReactPropTypesSecret.js +3 -5
  98. package/lib/ReactReconcileTransaction.js +3 -5
  99. package/lib/ReactReconciler.js +3 -5
  100. package/lib/ReactRef.js +3 -5
  101. package/lib/ReactReifiedYield.js +3 -5
  102. package/lib/ReactServerBatchingStrategy.js +3 -5
  103. package/lib/ReactServerRendering.js +3 -5
  104. package/lib/ReactServerRenderingTransaction.js +3 -5
  105. package/lib/ReactServerUpdateQueue.js +3 -5
  106. package/lib/ReactShallowRenderer.js +3 -5
  107. package/lib/ReactSimpleEmptyComponent.js +3 -5
  108. package/lib/ReactSyntheticEventType.js +3 -5
  109. package/lib/ReactTestReconcileTransaction.js +2 -4
  110. package/lib/ReactTestUtils.js +3 -5
  111. package/lib/ReactTypeOfWork.js +3 -5
  112. package/lib/ReactTypes.js +3 -5
  113. package/lib/ReactUpdateQueue.js +3 -5
  114. package/lib/ReactUpdates.js +4 -6
  115. package/lib/ReactVersion.js +4 -6
  116. package/lib/ResponderEventPlugin.js +3 -5
  117. package/lib/ResponderSyntheticEvent.js +3 -5
  118. package/lib/ResponderTouchHistoryStore.js +3 -5
  119. package/lib/SVGDOMPropertyConfig.js +3 -5
  120. package/lib/SelectEventPlugin.js +3 -5
  121. package/lib/SimpleEventPlugin.js +3 -5
  122. package/lib/SyntheticAnimationEvent.js +3 -5
  123. package/lib/SyntheticClipboardEvent.js +3 -5
  124. package/lib/SyntheticCompositionEvent.js +3 -5
  125. package/lib/SyntheticDragEvent.js +3 -5
  126. package/lib/SyntheticEvent.js +30 -27
  127. package/lib/SyntheticFocusEvent.js +3 -5
  128. package/lib/SyntheticInputEvent.js +3 -5
  129. package/lib/SyntheticKeyboardEvent.js +3 -5
  130. package/lib/SyntheticMouseEvent.js +3 -5
  131. package/lib/SyntheticTouchEvent.js +3 -5
  132. package/lib/SyntheticTransitionEvent.js +3 -5
  133. package/lib/SyntheticUIEvent.js +3 -5
  134. package/lib/SyntheticWheelEvent.js +3 -5
  135. package/lib/TapEventPlugin.js +3 -5
  136. package/lib/TouchHistoryMath.js +12 -6
  137. package/lib/Transaction.js +3 -5
  138. package/lib/ViewportMetrics.js +3 -5
  139. package/lib/accumulate.js +3 -5
  140. package/lib/accumulateInto.js +3 -5
  141. package/lib/adler32.js +3 -5
  142. package/lib/canDefineProperty.js +3 -5
  143. package/lib/checkReactTypeSpec.js +3 -5
  144. package/lib/createMicrosoftUnsafeLocalFunction.js +3 -5
  145. package/lib/dangerousStyleValue.js +5 -7
  146. package/lib/deprecated.js +3 -5
  147. package/lib/escapeTextContentForBrowser.js +3 -5
  148. package/lib/findDOMNode.js +3 -5
  149. package/lib/flattenChildren.js +3 -5
  150. package/lib/forEachAccumulated.js +3 -5
  151. package/lib/getEventCharCode.js +3 -5
  152. package/lib/getEventKey.js +3 -5
  153. package/lib/getEventModifierState.js +3 -5
  154. package/lib/getEventTarget.js +3 -5
  155. package/lib/getHostComponentFromComposite.js +3 -5
  156. package/lib/getIteratorFn.js +3 -5
  157. package/lib/getNodeForCharacterOffset.js +3 -5
  158. package/lib/getTestDocument.js +3 -5
  159. package/lib/getTextContentAccessor.js +3 -5
  160. package/lib/getVendorPrefixedEventName.js +3 -5
  161. package/lib/inputValueTracking.js +9 -10
  162. package/lib/instantiateReactComponent.js +3 -5
  163. package/lib/isEventSupported.js +3 -5
  164. package/lib/isTextInputElement.js +3 -5
  165. package/lib/lowPriorityWarning.js +3 -5
  166. package/lib/quoteAttributeValueForBrowser.js +3 -5
  167. package/lib/reactComponentExpect.js +3 -5
  168. package/lib/reactProdInvariant.js +2 -4
  169. package/lib/renderSubtreeIntoContainer.js +3 -5
  170. package/lib/setInnerHTML.js +3 -5
  171. package/lib/setTextContent.js +3 -5
  172. package/lib/shouldUpdateReactComponent.js +3 -5
  173. package/lib/traverseAllChildren.js +3 -5
  174. package/lib/validateDOMNesting.js +3 -5
  175. package/package.json +27 -20
  176. package/PATENTS +0 -33
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -23,6 +21,7 @@ var isUnitlessNumber = {
23
21
  boxFlexGroup: true,
24
22
  boxOrdinalGroup: true,
25
23
  columnCount: true,
24
+ columns: true,
26
25
  flex: true,
27
26
  flexGrow: true,
28
27
  flexPositive: true,
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -103,10 +101,6 @@ if (process.env.NODE_ENV !== 'production') {
103
101
  * @param {ReactDOMComponent} component
104
102
  */
105
103
  var warnValidStyle = function (name, value, component) {
106
- // Don't warn for CSS variables
107
- if (name.indexOf('--') === 0) {
108
- return;
109
- }
110
104
  var owner;
111
105
  if (component) {
112
106
  owner = component._currentElement._owner;
@@ -148,13 +142,16 @@ var CSSPropertyOperations = {
148
142
  if (!styles.hasOwnProperty(styleName)) {
149
143
  continue;
150
144
  }
145
+ var isCustomProperty = styleName.indexOf('--') === 0;
151
146
  var styleValue = styles[styleName];
152
147
  if (process.env.NODE_ENV !== 'production') {
153
- warnValidStyle(styleName, styleValue, component);
148
+ if (!isCustomProperty) {
149
+ warnValidStyle(styleName, styleValue, component);
150
+ }
154
151
  }
155
152
  if (styleValue != null) {
156
153
  serialized += processStyleName(styleName) + ':';
157
- serialized += dangerousStyleValue(styleName, styleValue, component) + ';';
154
+ serialized += dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ';';
158
155
  }
159
156
  }
160
157
  return serialized || null;
@@ -182,14 +179,17 @@ var CSSPropertyOperations = {
182
179
  if (!styles.hasOwnProperty(styleName)) {
183
180
  continue;
184
181
  }
182
+ var isCustomProperty = styleName.indexOf('--') === 0;
185
183
  if (process.env.NODE_ENV !== 'production') {
186
- warnValidStyle(styleName, styles[styleName], component);
184
+ if (!isCustomProperty) {
185
+ warnValidStyle(styleName, styles[styleName], component);
186
+ }
187
187
  }
188
- var styleValue = dangerousStyleValue(styleName, styles[styleName], component);
188
+ var styleValue = dangerousStyleValue(styleName, styles[styleName], component, isCustomProperty);
189
189
  if (styleName === 'float' || styleName === 'cssFloat') {
190
190
  styleName = styleFloatAccessor;
191
191
  }
192
- if (styleName.indexOf('--') === 0) {
192
+ if (isCustomProperty) {
193
193
  style.setProperty(styleName, styleValue);
194
194
  } else if (styleValue) {
195
195
  style[styleName] = styleValue;
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -129,7 +127,7 @@ if (ExecutionEnvironment.canUseDOM) {
129
127
  // IE9 claims to support the input event but fails to trigger it when
130
128
  // deleting text, so we ignore its input events.
131
129
 
132
- isInputEventSupported = isEventSupported('input') && (!('documentMode' in document) || document.documentMode > 9);
130
+ isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
133
131
  }
134
132
 
135
133
  /**
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2015-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2015-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
package/lib/Danger.js CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -53,6 +51,7 @@ var HTMLDOMPropertyConfig = {
53
51
  contentEditable: 0,
54
52
  contextMenu: 0,
55
53
  controls: HAS_BOOLEAN_VALUE,
54
+ controlsList: 0,
56
55
  coords: 0,
57
56
  crossOrigin: 0,
58
57
  data: 0, // For `<object />` acts as `src`.
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2016-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2016-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -273,7 +271,7 @@ var ReactCompositeComponent = {
273
271
  },
274
272
 
275
273
  _constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {
276
- if (process.env.NODE_ENV !== 'production') {
274
+ if (process.env.NODE_ENV !== 'production' && !doConstruct) {
277
275
  ReactCurrentOwner.current = this;
278
276
  try {
279
277
  return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
package/lib/ReactDOM.js CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -35,6 +33,7 @@ var ReactDOM = {
35
33
  /* eslint-disable camelcase */
36
34
  unstable_batchedUpdates: ReactUpdates.batchedUpdates,
37
35
  unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
36
+ /* eslint-enable camelcase */
38
37
  };
39
38
 
40
39
  // Inject the runtime into a devtools global hook regardless of browser.
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -316,6 +314,7 @@ var omittedCloseTags = {
316
314
  source: true,
317
315
  track: true,
318
316
  wbr: true
317
+ // NOTE: menuitem's close tag should be omitted, but that causes problems.
319
318
  };
320
319
 
321
320
  var newlineEatingTags = {
@@ -764,6 +763,10 @@ ReactDOMComponent.Mixin = {
764
763
  // happen after `_updateDOMProperties`. Otherwise HTML5 input validations
765
764
  // raise warnings and prevent the new value from being assigned.
766
765
  ReactDOMInput.updateWrapper(this);
766
+
767
+ // We also check that we haven't missed a value update, such as a
768
+ // Radio group shifting the checked value to another named radio input.
769
+ inputValueTracking.updateValueIfChanged(this);
767
770
  break;
768
771
  case 'textarea':
769
772
  ReactDOMTextarea.updateWrapper(this);