Are these "one shot" tests that should be done outside the loop?
```js
settings.allPre = /all-pre/.test(cssClasses);
cssClasses = typeof pre.className === "string" ? pre.className.split( " " ) : [];
```
Pretty sure that is the wrong syntax for the `test` ... It also doesn't deal with the case where `cssClasses` starts as an array