Bug Tracker

Changes between Initial Version and Version 1 of Ticket #8805, comment 6


Ignore:
Timestamp:
May 26, 2011, 4:36:11 PM (11 years ago)
Author:
dmethvin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8805, comment 6

    initial v1  
    1 Hmmm, IE<9 only seems to misbehave if the '''attribute''' is set, and not the '''property'''. So one workaround is to use:
    2 {{{
    3 $("#whatever").prop("href", "http://example.com/");
    4 }}}
    5 As long as you don't plan to serialize the HTML of the link (via `.innerHTML` or `.clone()`) there shouldn't be any negative impacts.
     1Disregard ...
     2
     3Here is a fiddle showing the problem in pure DOM in IE:
     4
     5http://jsfiddle.net/dmethvin/Rsv5J/