Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 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:

Description

.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 7 years ago by dmethvin

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

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

Replying to dmethvin:

Use &

http://www.w3.org/TR/html4/charset.html#h-5.3.2

http://www.w3.org/TR/xhtml1/guidelines.html#C_12

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

Note: See TracTickets for help on using tickets.