Possible Bug in html()
Possible Bug in html()
Hi,
I was trying to transform a input DOM in textarea DOM.
However, I am running in a problem:
- >>>$("<textarea>").html("<textarea>").get(0).outerHTML
- "<textarea><textarea></textarea>"
- >>>$("<textarea>").html("</textarea>").get(0).outerHTML
- "<textarea></textarea>"
As can you see, the line 4 isn't the excepted.(for me at least)
I was expecting:
- "<textarea><\textarea></textarea>"
Is this a Bug? Or is something that I am