diff --git a/src/browser/ui/ReactMount.js b/src/browser/ui/ReactMount.js index 764e6f1e996fa..581a904427da4 100644 --- a/src/browser/ui/ReactMount.js +++ b/src/browser/ui/ReactMount.js @@ -649,9 +649,10 @@ var ReactMount = { false, 'findComponentRoot(..., %s): Unable to find element. This probably ' + 'means the DOM was unexpectedly mutated (e.g., by the browser), ' + - 'usually due to forgetting a when using tables, nesting

' + - 'or tags, or using non-SVG elements in an parent. Try ' + - 'inspecting the child nodes of the element with React ID `%s`.', + 'usually due to forgetting a when using tables, nesting tags ' + + 'like
,

, or , or using non-SVG elements in an ' + + 'parent. ' + + 'Try inspecting the child nodes of the element with React ID `%s`.', targetID, ReactMount.getID(ancestorNode) ); diff --git a/src/browser/ui/dom/DOMChildrenOperations.js b/src/browser/ui/dom/DOMChildrenOperations.js index 0c53caf2c968f..437164653b7a7 100644 --- a/src/browser/ui/dom/DOMChildrenOperations.js +++ b/src/browser/ui/dom/DOMChildrenOperations.js @@ -119,9 +119,9 @@ var DOMChildrenOperations = { 'processUpdates(): Unable to find child %s of element. This ' + 'probably means the DOM was unexpectedly mutated (e.g., by the ' + 'browser), usually due to forgetting a when using tables, ' + - 'nesting

or tags, or using non-SVG elements in an '+ - 'parent. Try inspecting the child nodes of the element with React ' + - 'ID `%s`.', + 'nesting tags like
,

, or , or using non-SVG elements '+ + 'in an parent. Try inspecting the child nodes of the element ' + + 'with React ID `%s`.', updatedIndex, parentID ); diff --git a/src/core/__tests__/ReactInstanceHandles-test.js b/src/core/__tests__/ReactInstanceHandles-test.js index 4ae0f85c0b297..bd8a4ff6debc1 100644 --- a/src/core/__tests__/ReactInstanceHandles-test.js +++ b/src/core/__tests__/ReactInstanceHandles-test.js @@ -147,10 +147,10 @@ describe('ReactInstanceHandles', function() { 'Invariant Violation: findComponentRoot(..., .0.1:0:junk): ' + 'Unable to find element. This probably means the DOM was ' + 'unexpectedly mutated (e.g., by the browser), usually due to ' + - 'forgetting a when using tables, nesting

or tags, ' + - 'or using non-SVG elements in an parent. Try inspecting the ' + - 'child nodes of the element with React ' + - 'ID `.0`.' + 'forgetting a when using tables, nesting tags ' + + 'like
,

, or , or using non-SVG elements in an ' + + 'parent. ' + + 'Try inspecting the child nodes of the element with React ID `.0`.' ); }); });