The old docstring was similarly discongruous; it said "An HTML object with the `__html` property." but had the fallback. Happy to remove it if `{__html: null}` is unsupported (which seems reasonable to me).

By the way, should that regex be `/^ +/g` and should it be extracted out of this function so it can be compiled once?