replace dots with slashes in data-dojo-type
use dom.isDescendant + formatting to comply dojo standards.