Be nice to polyfills

We don't actually need a DOMStringList here, we just rely on an
existing contains() method.