Files
2020-11-14 15:54:43 +08:00

8 lines
172 B
JavaScript

function next(node, selector) {
if (selector && document.querySelector(selector) !== node.nextElementSibling) {
return null;
}
return node.nextElementSibling;
}