Refactored FluentDOM\Element::applyNamespaces()