Fixed reference to the DOMText class

This bug was preventing the detection of an instance of the DOMText class.
Referencing the class in a global namespaces solves the issue.

Signed-off-by: Vinicius Kwiecien Ruoso <vinicius.ruoso@gmail.com>