Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with appended classes in IE7 #1

Closed
keld30 opened this issue Aug 19, 2011 · 2 comments
Closed

Problem with appended classes in IE7 #1

keld30 opened this issue Aug 19, 2011 · 2 comments

Comments

@keld30
Copy link

keld30 commented Aug 19, 2011

There’s a very annoying bug in IE7, when you click on a form field, it changes it’s size because the script is appending some class names to the field but is not adding a space between the original class name and the webforms class name, therefore, breaking it…

For ex:
input type=”text” class=”city html5-hasFocushtml5-hasFocushtml5-hasFocus html5-hasPlaceholderText”
then it becomes:
input type=”text” class=”cityhtml5-hasFocushtml5-hasFocushtml5-hasFocus html5-hasPlaceholderText”

no space between city and html5 classes.

@keld30
Copy link
Author

keld30 commented Aug 20, 2011

Seems like if I had a space at line 845 in html5widgets.js between the single quotes after the re, ' ' it fixes it:
if (obj.className) {
obj.className = oldClassName.replace(re, ' ');
}

@zoltan-dulac
Copy link
Owner

This has been fixed already (must have forgotten to comment on this way back when). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants