Bug Tracker

Modify

Ticket #10276 (closed bug: invalid)

Opened 21 months ago

Last modified 21 months ago

.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:
Blocking: Blocked by:

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

comment:1 follow-up: ↓ 2 Changed 21 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid
Last edited 21 months ago by dmethvin (previous) (diff)

comment:2 in reply to: ↑ 1 Changed 21 months 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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.