> under FF it works great, but under IE test1 cause error. It looks like
> because one field are named "position".

All  CSS  properties  (well,  those  without  hyphens)  are implicitly
members of the `style` object in JS.

While  this  does not make CSS props reserved words in all contexts --
for  example,  here  `position`  is  a  property of the `Form` object,
rather than a property of `Form.style`) -- it's best practice to avoid
using them for any other purpose. Note that if you set a new var equal
directly   to  the  intermediate  `CSSStyleDeclaration`  object,  then
`position` can appear to be a direct property of an element:

var blip = myForm.style;

var blippos = blip.position; // CSS `position`

var input = myForm.position; // input element named `position`

Dunno  about  you, but that's the kind of stuff I'd want to avoid. I'm
sure  it  doesn't  surprise anyone that IE would preemptively, even if
incorrectly, choke on your code before other browsers.

--Sandy

Reply via email to