Bug Tracker

Modify

Ticket #5965 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

this.nodeValue differs between 1.4.0 and 1.4.1

Reported by: NickTulett Owned by:
Priority: major Milestone: 1.4.2
Component: core Version: 1.4.1
Keywords: Cc:
Blocking: Blocked by:

Description

$("#test td").wrapInner(function() {

return "<div style='background-color:#2C3D5A;color:white;width:" + (5 * this.nodeValue) + "px'>&nbsp;</div>";

})

Should create a div in a table cell with the width defined by the value contained within that cell. This works in 1.4.0 but not 1.4.1

Change History

comment:1 Changed 3 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfilled to core
  • Milestone changed from 1.4.1 to 1.4.2

As mentioned in the 1.4.1 release notes this was broken in 1.4 (it was pointing back to the wrong element - the text node, in this case, instead of the td, which is correct). You'll need to adjust your code accordingly.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.