(key)
| 934 | clearObservedChanges(); |
| 935 | |
| 936 | const getCleanNodeByKey = (key) => { |
| 937 | let n = targetDoc.getElementById(key); |
| 938 | // copying and pasting can lead to duplicate ids |
| 939 | while (n && isNodeDirty(n)) { |
| 940 | n.id = ''; |
| 941 | n = targetDoc.getElementById(key); |
| 942 | } |
| 943 | return n; |
| 944 | }; |
| 945 | |
| 946 | const observeChangesAroundNode = (node) => { |
| 947 | // Around this top-level DOM node, look for changes to the document |
no test coverage detected