JavaScript: More robust condition for outlining.
as per @SLaks' comment at
madskristensen/WebEssentials2013#528.