Add 4 new browser snippets
triggerEvent - trigger an event on an element, insertAfter & insertBefore - parse and insert HTML after or before an element respectively, elementContains - checks if an element contains another element
This commit is contained in:
2
test/insertAfter/insertAfter.js
Normal file
2
test/insertAfter/insertAfter.js
Normal file
@ -0,0 +1,2 @@
|
||||
const insertAfter = (el, htmlString) => el.insertAdjacentHTML('afterend', htmlString);
|
||||
module.exports = insertAfter;
|
||||
Reference in New Issue
Block a user