Closed Bug 293286 Opened 20 years ago Closed 20 years ago

case sensity on backgroundcolor

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bugzillaspambox, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Firefox can't handle with the backgroundcolor element proberly. It should be
independent of uppercase and lowercase letters, but it isn't.

Reproducible: Always

Steps to Reproduce:
1. Create a new text file on your desktop
2. Copy the following code in it (without the ====)

========================
<HTML>
<BODY>

<table border=1 cellspacing=0 cellpadding=2 align=center
style="border-collapse:collapse">
	<tr>
		<td onMouseOver='this.style.backgroundColor="green"'>
			move mouse over here
		</td>
		<td onMouseOver='this.style.backgroundcolor="green"'>
			now mouse your mouse over here
		</td>
	</tr>
</table>

</BODY>
</HTML>
========================

3. Save the text file
4. Rename it as "something.htm"
5. Open it with firefox and do what the text in your browser window tells you to do.
Actual Results:  
first cell became green, second one didn't

Expected Results:  
both cells should become green if i move the mouse of it

I guess the bug is in the mozilla core, but i couldn't choose that in the
choosing box
yes, it's case sensitive.  DOM generally is case sensitive (it's difficult to
think of a case where it's not).  resolving INVALID -- not a Mozilla bug.

http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/ecma-script-binding.html

To file a bug in Core, you need to select that as your product (not Firefox)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
your posted link does not say anything about case sensitive
ECMAScript is a case-sensitive language.  So in ECMAScript, backgroundColor and
backgroundcolor are _different_ properties.

Now the DOM specification says that the backgroundColor property of a certain
object does something.  It doesn't say anything about the backgroundcolor
property, so there's no reason the latter would do anything, or if it does do
something there is no reason it would set the backgroundcolor.
You need to log in before you can comment on or make changes to this bug.