fix: fixes domRegistry for old browsers. up for comments