on method

HTMLRewriter on(
  1. String selector,
  2. ElementHandler handler
)

Implementation

HTMLRewriter on(String selector, ElementHandler handler) =>
    js_util.callMethod(this, 'on', [selector, handler]);