changed how DOM length routines check pointer association