IE8 layout / js bug

  1. Ensure you're running IE8 in standards mode.
  2. Insert element using innerHTML
  3. Set attribute 'hello' to 'world' on the inserted element. Magic margin / padding appears!
  4. Repeat the last step. The element appears to toggle between incorrect rendering and correct rendering.
Content will appear here