Dieter Raber: getAttribute('style') im IE == object

Beitrag lesen

Hallo Balu,

Der IE gibt folgendes Array zurueck:

clear =>
posRight => 0
backgroundRepeat => repeat
borderTopStyle =>
marginTop =>
fontVariant =>
listStylePosition =>
backgroundPositionX => 0%
lineHeight =>
scrollbarHighlightColor =>
overflowX =>
paddingLeft =>
borderLeftWidth =>
padding =>
listStyleType =>
borderLeftColor =>
display =>
textDecorationLineThrough => false
marginBottom =>
textKashidaSpace =>
borderCollapse =>
textDecorationBlink => false
scrollbarFaceColor =>
backgroundAttachment => scroll
borderRightStyle =>
fontStyle =>
textUnderlinePosition =>
textIndent =>
textDecorationOverline => false
layoutGridMode =>
right =>
pageBreakAfter =>
background => #f00
filter =>
borderColor =>
posWidth => 0
left =>
minHeight =>
accelerator => false
rubyOverhang =>
layoutGrid =>
visibility =>
verticalAlign =>
borderBottomWidth =>
scrollbarShadowColor =>
textTransform =>
lineBreak =>
scrollbarArrowColor =>
margin =>
borderBottomColor =>
borderTopWidth =>
behavior =>
letterSpacing =>
layoutFlow =>
font =>
borderTopColor =>
paddingBottom =>
whiteSpace =>
overflow =>
borderBottomStyle =>
cssText => BACKGROUND: #f00
width =>
clip =>
cursor =>
fontSize =>
imeMode =>
backgroundPosition => 0% 0%
color =>
paddingRight =>
textAutospace =>
pageBreakBefore =>
direction =>
bottom =>
fontFamily =>
unicodeBidi =>
posHeight => 0
posBottom => 0
borderRightColor =>
styleFloat =>
textJustify =>
backgroundColor => #f00
posTop => 0
zIndex => 0
borderLeftStyle =>
zoom =>
listStyleImage =>
wordSpacing =>
textDecoration =>
borderBottom =>
layoutGridChar =>
tableLayout =>
border =>
textAlign =>
backgroundPositionY => 0%
backgroundImage => none
borderWidth =>
borderTop =>
textJustifyTrim =>
scrollbar3dLightColor =>
fontWeight =>
scrollbarDarkShadowColor =>
textAlignLast =>
posLeft => 0
borderRightWidth =>
paddingTop =>
wordBreak =>
textOverflow =>
rubyPosition =>
borderStyle =>
borderRight =>
wordWrap =>
position =>
overflowY =>
textDecorationUnderline => false
layoutGridLine =>
top =>
textDecorationNone => false
writingMode =>
height =>
scrollbarTrackColor =>
listStyle =>
scrollbarBaseColor =>
marginRight =>
marginLeft =>
layoutGridType =>
textKashida =>
rubyAlign =>
borderLeft =>

Du kannst also einfach feststellen, ob du einen String oder ein Array zurueckbekommst, du dann entsprechend damit umgehen.

Gruß,

Dieter