Skip to main content

Bug Tracker

Side navigation

#10276 closed bug (invalid)

Opened September 14, 2011 02:42PM UTC

Closed September 14, 2011 11:15PM UTC

Last modified September 15, 2011 06:25AM UTC

.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

Attachments (0)
Change History (2)

Changed September 14, 2011 11:15PM UTC by dmethvin comment:1

_comment0: Use `&` \ \ http://www.w3.org/TR/html4/charset.html#h-5.3.2 \ http://www.w3.org/TR/xhtml1/guidelines.html#C_12 \ 1316042131636509
resolution: → invalid
status: newclosed

Changed September 15, 2011 06:25AM UTC by xroot comment:2

Replying to [comment:1 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.