Jquery adds an extra closing tag to span on .text() method -
i'm having problem jquery .text(), .html() methods. when click on specific button change content of span element, adds closing tag, visible in tools such firebug.
here's demo: http://jsfiddle.net/kbsrp/ click on button , inspect span tag, you'll see added closing tag.
<span>updated text</span> updated text</span>
does know, how prevent bug? annoying in cases.
this seems bug in chrome's web inspector, why firefox people aren't seeing it. can verify correct state in chrome manually traversing dom, shows web inspector lying:
note test, need change active frame dropdown result( fiddle.jshell.net )
. otherwise queries ran on main window.
Comments
Post a Comment