BUG: onpropertychange event fires incorrectly when setting padding style for TEXTAREA

I've observed some strange behaviour concerning the onpropertychange event and TEXTAREA elements. Changing certain style properties cause the onpropertychange event to fire not only for the property being changed, but also for the value property. I've been able to reproduce this behaviour in both IE6 and IE7. For example, if you place the following HTML on a page and click on the TEXTAREA element, the result is two alert messages, the first one, which is unexpected, for the 'value' property, and the second one for 'style.paddingLeft'.

<textarea onclick="this.style.paddingLeft='20px';" onpropertychange="alert(window.event.propertyName);"></textarea>

This applies to all the 'padding' properties.


Fernando Tubio



Answer this question

BUG: onpropertychange event fires incorrectly when setting padding style for TEXTAREA

  • Vidhya Sagar

    I can confirm this bug.
  • BUG: onpropertychange event fires incorrectly when setting padding style for TEXTAREA