Excuse me for my bad English.
I am using the forms Event and Views for Drupal 5.1.
They work very well, but they doesn't pass the validation of the W3C (http://validator.w3.org /).
The error is this:
... "event_term_select" onChange = "this.form.submit () " class = "for...
Error: there is no attribute onChange for this element (in this HTML version)
Is it possible to correct the error?
I am making the site of my school and the new Italian law wants the sites of the public administration to be correct.
Thanks for the help.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | event_onchange.diff | 2.32 KB | dturover |
Comments
Comment #1
killes@www.drop.org commentedmoving
Comment #2
killes@www.drop.org commentedActually, this I'll try to fix this in the .2 versions only.
Comment #3
dturover commentedonChange is an easy fix. Just convert it to the lower-case onchange. The bug is that w3c outlawed what was standard coding practice at the time =)
It looks like the problem is only in three places in event.module. I am going to try to upload a patch. I just did a mass search-and-replace, so if you don't want it lowercased in the comments too, then leave those parts out.
Comment #4
gerhard killesreiter commentedThanks!
Could I bug you to convert this to jQuery?
Comment #5
dturover commentedSorry, I would not know how to begin doing that. Isn't jQuery a javascript library or is there something else with that name?
Comment #6
killes@www.drop.org commentedyes, jQuery is the Drupal JS library. Thanks for the patch anyway!
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.