Bug865750: visibility_monitor rewrite using getElementsByTagName