Closed Bug 308543 Opened 19 years ago Closed 19 years ago

Support for "ch" and "chOff" attributes for TR tags seem to be implemented, but return incorrect value

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: reeves.ryan, Unassigned)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

When you set the "ch" attribute of a TR (e.i. <tr ch="item">), when accessing 
this property in JavaScript the value returned is always "." (a period).

When you set the "chOff" attribute of a TR (e.i. <tr chOff="item">), when 
accessing this property in JavaScript the value returned is always "" (an empty 
string).

Reproducible: Always

Steps to Reproduce:
Save this code into an HTML file and click the "Alert" button

<html>
<head>
<script language="JavaScript">
function getProperties_CH() {
	var row = document.getElementById('testTR');
	alert('tr.ch\t= "' + row.ch + '"\ntr.chOff\t= "' + row.chOff + '"');
}
</script>
</head>

<body>
<table>
	<tr id="testTR" ch="ch_Test" chOff="chOff_Test">
		<td>Test</td>
	</tr>
</table>

<input type="button" value="Alert" onclick="getProperties_CH()">

</body>
</html>
Actual Results:  
The values aren't what they should be.

Expected Results:  
Returned the correct values.
According to the spec the attributes should be char and charoff.

http://www.w3.org/TR/html4/sgml/dtd.html#cellhalign
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.