```coffeescript
switch node.nodeName
  when '#text'
    ...
  when 'WBR' 
```
You could also do `switch node.nodeName.toLowerCase()`.