Side navigation
#12812 closed bug (notabug)
Opened October 30, 2012 04:00PM UTC
Closed October 30, 2012 10:49PM UTC
$().add(html) returns different result on IE compared to Firefox/Chrome
Reported by: | zouhenry@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
$().add("<div><option> hello </option></div>").html()
IE (9): returns " hello "
Chrome/Firefox: returns "<option> hello </option>"
This is not valid HTML
OPTION is not allowed in DIV!
Try:
and everything works fine (though still crappy code, you don't have to use .add() here)