jQuery: The Write Less, Do More JavaScript Library

Ticket #1489 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

<caption> erroring on append and prepend, nothing on appendTo or prependTo

Reported by: bmsterling Assigned to: anonymous
Type: bug Priority: minor
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords: caption, append, prepend, appendTo, prependTo
Cc: Needs: Review

Description

The following error out when adding to a <table>

$('table').append('<caption>');
$('table').append('<caption></caption>');
$('table').prepend('<caption>');
$('table').prepend('<caption></caption>');

Nothing happens to the following when adding to a <table> and returns an empty object

$('<caption>').appendTo('table')
$('<caption>').prependTo('table')

The following adds ONLY the word "Test" when adding to a <table>

$('table').append('<caption>Test</caption>');
$('table').prepend('<caption>Test</caption>');
$('<caption>Test</caption>').appendTo('table');
$('<caption>Test</caption>').prependTo('table');

Attachments

Change History

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [2728].

Note: See TracTickets for help on using tickets.