Add function "applyMinMax" to support HTML5 min/max attributes in near-realtime