squizlabs/HTML_CodeSniffer — pull request #38 by lwright-sq (2012-09-10 04:49:17+00:00)
Title: Messages from "_top" sniffs now replayed in DOM order.

Messages from "_top" sniffs are now saved and replayed when the element is found in the DOM order.

This reduces as much as possible (does not eliminate) the amount of bouncing up and down the page - as used to happen when the "_top" sniffs (which could emit messages anywhere) fire, resulting in the first few messages being ordered by sniff (and thus in the WCAG 2.0 case, by Success Criterion). This now saves and clears "_top" messages and replays them into the message list when it is time to handle that element.

It will not entirely eliminate bouncing because elements that are absolute-positioned out of the page order will cause bouncing, but for most elements it should cause the pointer to flow naturally.