Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#10276 closed bug (invalid)

.html() doesn't behave consistently on all browsers.

Reported by: xroot Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.4rc1
Keywords: Cc:
Blocked by: Blocking:


.html() isn't cross-browser consistent if val contains a trailing unencoded ampersand. IE removes the ampersand, Chrome and Firefox don't.

jsfiddle test case

Change History (2)

comment:1 Changed 11 years ago by dmethvin

Resolution: invalid
Status: newclosed
Last edited 11 years ago by dmethvin (previous) (diff)

comment:2 in reply to:  1 Changed 11 years ago by xroot

Replying to dmethvin:

Use &



I know that this is invalid HTML. It doesn't behave consistent on all browsers, anyway.

Note: See TracTickets for help on using tickets.