This project is archived and is in readonly mode.

#421 ✓resolved
Thomas Aylott

Cannot set HTML on a TR in Gecko unless it has a parentNode

Reported by Thomas Aylott | October 13th, 2008 @ 05:55 AM | in 1.3.0 rc2 (closed)


"should set the html of a tr Element, even when it has no parentNode": function(){
	var html = '<td class="cell">cell 1</td><td>cell 2</td>';
	var tr = new Element('tr').set('html', html);
	value_of(tr.parentNode).should_be_null();
	tr.inject(new Element('tbody').inject(new Element('table')));
	value_of(tr.get('html')).should_be(html);
	value_of(tr.getChildren().length).should_be(2);
	value_of(tr.getFirst().className).should_be('cell');
},

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by

Pages