Skip to main content

Bug Tracker

Side navigation

#8494 closed bug (invalid)

Opened March 10, 2011 02:29PM UTC

Closed March 10, 2011 03:10PM UTC

$('<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.

Attachments (0)
Change History (1)

Changed March 10, 2011 03:10PM UTC by dmethvin comment:1

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)