void add(
NodeValidator validator
)

Add an additional validator to the current list of validators.

Elements and attributes will be accepted if they are accepted by any validators.

Source

/**
 * Add an additional validator to the current list of validators.
 *
 * Elements and attributes will be accepted if they are accepted by any
 * validators.
 */
void add(NodeValidator validator) {
  _validators.add(validator);
}