Tuesday, November 30, 2010

IE setAttribute

setAttribute doesn't always work in IE
http://webbugtrack.blogspot.com/2007/08/bug-242-setattribute-doesnt-always-work.html

# bgcolor: Use "bgColor"

# cellpadding: Use "cellPadding"

# cellspacing: Use "cellSpacing"

# class: Use "className"

# colspan: Use "colSpan"

# defaultchecked: Use "defaultChecked"

# defaultselected: Use "defaultSelected"

# defaultvalue: Use "defaultValue"

# type: See note (bug 237) "type" is readonly in IE

# frameborder: Use "frameBorder"

# hspace: Use "hSpace"

# longdesc: Use "longDesc"

# maxlength: Use "maxLength"

# marginwidth: Use "marginWidth"

# marginheight: Use "marginHeight"

# noresize: Use "noResize"

# noshade: Use "noShade"

# on*: Inline events can not be set in IE, attach event handlers instead

# readonly: Use "readOnly"

# rowspan: Use "rowSpan"

# selected: When setting multiple selected items in a "select multiple" this will fail. {bug ref#TBD}

# style: None - see (bug 245), (bug 329)

# tabindex: Use "tabIndex"

# valign: Use "vAlign"

# vspace: Use "vSpace"


var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer") {
}

No comments:

Post a Comment