Div contents: "foobar" state: false selection: #document 0 #document 0
Div contents: "foo<sub>bar</sub>" state: true selection: #text 0 #text 3
Div contents: "<sub>foobar</sub>" state: true selection: #text 0 #text 3
Div contents: "<sub>foo</sub>bar" state: false selection: #text 0 #text 3
