jstoudt/enscroll — Issue #1: Handle mutation events rather than poll for scrollHeight changes
Author: jstoudt
Created: 2011-12-31 22:07:34+00:00
State: open

An interval is registered to poll for the changes in the pane's scrollHeight property rather than responding to mutation events.

DOM Mutation Events are not being used in the current implementation since Firefox and Opera are the only two browsers which have the expected support for the DOMSubtreeModified and DOMAttrModified. Plus, mutation events are not available in older versions of IE (onpropertychanged may be a viable alternative), webkit does not fire DOMAttrModified when the style attribute is modified, and these mutation events are marked as deprecated by the W3C spec.

As soon as a better alternative to polling is discovered/available, we should implement it.