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
Space character is not valid for ID attribute #568
Comments
Spaces in IDs aren't valid. That's true. Still you can select ids with spaces using jQuery:
|
Yeah, but I think atleast the core classes should generate valid html. |
Thanks for the hint samdark :) |
I don't know under which situation we will see names containing spaces. But On Mon, Apr 2, 2012 at 7:12 AM, Maurizio Domba <
|
I guess this can happen if the developer calls this method with some custom values... agree with you to fix this as I don't see why would anybody insist in having spaces in the name. Will fix this asap. |
Fixes issue #568 - added check for space in CHtml::getIdByName()
Hello,
I'm using CHtml::getIdByName($name). However it does not replace spaces which are not valid for ID attributes. If ID contains spaces, the element cannot be selected by jQuery also. Thank you.
Yasen
The text was updated successfully, but these errors were encountered: