Unreachable exit case in original getElementAttributes code. (#5)
Unreachable exit case in original getElementAttributes code. (#5)

* This was unreachable as objects are compared by reference.

As it was from the original code and for the sake of type-safety, I've maintained the functionality, not the intent as written.

Empty object makes more sense to me than null here anyway.

gburtini/Potent-Tools-for-XPath