Fix #787: Add mechanism for propagation of DOM dependency

`Some(x.requiresDOM)`