Bug Tracker

Opened 13 years ago

Closed 13 years ago

#8494 closed bug (invalid)

$('<span class="x">') does not parse in IE

Reported by: kellyselden Owned by:
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

test case: http://jsfiddle.net/YRnFa/

$('<span>') //works
$('<span class="x" />') //works
$('<span class="x">') //doesn't work

works fine in FF.

Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

Yes. The docs are clear on this.

http://api.jquery.com/jQuery/#jQuery2

To ensure cross-platform compatibility, the snippet must be well-formed. Tags that can contain other elements should be paired with a closing tag ... Alternatively, jQuery allows XML-like tag syntax (with or without a space before the slash)

Note: See TracTickets for help on using tickets.