title: Which HTMLElement property change generates DOMAttrModified?
body: <p>I have a question about DOMAttrModified. Which changes to an HTML Element properties triggers the DOMAttrModified event (specifically interested in Firefox, but an answer that applies to other browsers might suffice too)?</p>
  
  <p>I have the following test case :</p>
  
  <pre><code>        var elem = document.createElement('input');
          document.body.appendChild(elem);
  
          elem.id    = 'inputId';      // triggers DOMAttrModified
          elem.type  = 'text';         // triggers DOMAttrModified
          elem.value = 'inputValue';   // DOES NOT trigger DOMAttrModified
          elem.lang  = 'en';           // triggers DOMAttrModified
  </code></pre>
  
  <p>If I change elem.value to elem.defaultValue, then a DOMAttrModified does get triggered. Is there a comprehensive list somewhere? So far I have found HTMLInputElement's 'value' and 'checked' and HTMLOptionElement's 'selected' property not trigerring DOMAttrModified. Are there any other?</p>
  
  <p>The answer at <a href="https://stackoverflow.com/questions/7668882/domattrmodified-visual-attributes">DOMAttrModified visual attributes</a> does NOT seem to be completely correct, as 'value' is also an attribute.</p>
  
  <p>Thanks,
  Sunil</p>