Can't create button-element using $E in IE8
-
MadRabbit
Hi Claus,
Yup, that might be a rightjs problem. people normally don't use BUTTON tags, coz they send different form values in IE and w3c (IE sends the text inside of the tags and w3c send the
valueattribute), so it probably wasn't noticed before.I'll check it out shortly
-
CjK
Looks like setting the "type"-Attribute actually causes the error:
b = $E('button');
b.set('type', 'foo');
--> ERRORhowever:
b._.setAttribute('type', 'submit');
---> WORKSb.get('type');
--> "submit"So, is perhaps the element#set method doing something that IE doesn't like?
-
MadRabbit
btw, did you check what your form actually sends to the server in IE? there is a similar issue with checkboxes, when you create a checkbox programmatically in IE and set the 'checked' value, it seems working correctly in JavaScript debugging but the browser doesn't send anything to the server in reality
-
CjK
Nik, thanks for pointing this out. I've checked and the button seems to work fine in IE.
I've had so many surprises with IE-browsers that a "it works" makes me suspicious :-}
In my case, a simple workaround would be to leave the "type: 'submit'" Attribute out when creating the button, since it's the default-value for buttons. But this doesn't solve the general issue.
-
MadRabbit
- State changed from new to resolved
Hi Claus,
I've fixed the bug https://github.com/rightjs/rightjs-core/commit/36131b7827fa2322910a...
Will be published with the 2.3.0 release, probably tomorrow
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.