Bug Tracker

Ticket #8494 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

$('<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:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.