import TestCase from '../../TestCase'; import Fixture from '../../Fixture'; import CompareDocumentPositionFragmentContainer from './CompareDocumentPositionFragmentContainer'; const React = window.React; export default function CompareDocumentPositionCase() { return (
  • Click the "Compare All Positions" button
  • The compareDocumentPosition method compares the position of the fragment relative to other elements in the DOM. The "Before Element" should be PRECEDING the fragment, and the "After Element" should be FOLLOWING. Elements inside the fragment should be CONTAINED_BY.
    First child element
    Second child element
    Third child element
    ); }