dillon1000/react
Commit
Browse files Make mounting on the root of the page work correctly
This was apparently only partially supported. We had issues initially mounting if there was no HTML present and also had issues if we had to update HTML that was already there. This diff fixes all of these cases and has tests to prove it. NOTE: I removed a test that was actually erroneous. My bad.
Changed paths8 files
First-parent comparisonsrc/core/ReactComponentBrowserEnvironment.js ModifiedM src/core/__tests__/ReactComponent-test.js ModifiedA src/core/__tests__/ReactRenderDocument-test.js AddedM src/dom/Danger.js ModifiedA src/dom/__tests__/mutateHTMLNodeWithMarkup-test.js AddedA src/dom/filterAttributes.js AddedA src/dom/mutateHTMLNodeWithMarkup.js AddedA src/test/getTestDocument.js AddedPatch
Files changed
Rendering syntax-highlighted changes…