The code is as follows
<! DOCTYPE html>
Use $ (' <a href= ' JavaScript; >') to create a jquery object and add it to the Div, firefox/chrome/safari/opera/ie9+ can see the Added link a. Except ie6,7,8.
Began to think is 1.6.4 version of the bug (believe that the wording is not a problem), after the change 1.7.0,1.7.2,1.8.0,1.8.3,1.9.1,1.11.1 all this, just surprised.
You can just close the A for a minute.
var $a = $ (' <a href= "javascript:;" ></a> '). Text (' Sina ')
Or
var $a = $ (' <a> ') $a. attr (' href ', ' javascript:; ') $a. Text (' Sina ')
It's no problem.
View the document as explained below
Read only know, non-jquery bug, is their own improper use, closed tag must be closed, non-closed single label (Input, IMG) can not be closed. Always thought that the almighty jquery () constructor can be compatible with all kinds of poor writing, pay attention!
IE6/7/8 does not support jquery creating non-closed format links a