contenteditable-should-insert-into-nested-node.html 346 B

12345678910
  1. <script src="include.js"></script>
  2. <div id="editable" contenteditable="true"><p id="text">hello</p></div>
  3. <script>
  4. test(() => {
  5. const editable = document.getElementById('editable');
  6. internals.sendText(editable, "!!!");
  7. const text = document.getElementById('text');
  8. println(text.textContent);
  9. });
  10. </script>