GetElementByID has changed with Connect COM API?

Just wanted to complain a bit and maybe provide some answers to those that run into this. In pre-connect era we could get an element by ID using GetElementByID, even if it was inside of a cell. That's not the behavior now, instead you're returned a cell object that contains that sub element. In my opinion this is a bug, although I'm sure someone can come up with a reason why that's the behavior. So if you do need to get to the subelement by ID, you should probably check if the result is a cell and it likely doesn't match your ID, and then perform a scan on that cell object for any sub or sub-sub elements with that ID.

Parents Reply Children
No Data