In IE 8, modifying attributes by scripts doesn't cause a reflow. That is, attribute selectors don't match elements with dynamically changed attributes.