Posted: September 17, 2013 at 9:17 am
|
I’m getting some validation errors on my registration pages (eg. http://www.audarya.org/event-registration/?ee=34): Line 133, Column 676: Bad value for attribute href on element a: Whitespace in query component. Use %20 in place of spaces. …spresso_ical_link” title=”iCal Import”><img src=”http://www.audarya.org/wp-con… Syntax of IRI reference: Error Line 133, Column 775: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images. …/wp-content/plugins/event-espresso/images/icons/calendar_link.png”> </p> ? …=”fname” class=”ee-reg-page-questions”>First Name*</label> <input typ… I’m also getting this error on the page with the links to the registration pages: Line 141, Column 106: & did not start a character reference. (& probably should have been escaped as &.) …code’ style=’display:none;’ data=’id=1&event_category_id=viikonloppu&venue_id=… Suggestions? |
Hi there, With the first two errors, they are from the Add to calendar (ical) button feature. If your project does not require an ical button, it can be disabled from Event Espresso>Template settings. With the third error, there’s an html spec that states the for must match the ID. Since Event Espresso doesn’t match the two you’ll see the error. I will need to do some additional research on the for/ID issue and the last one about the & being escaped and get back with you on that. |
|
|
About the for/id errors (there are a lot and I didn’t post them all), in the following line: <label for="fname" class="ee-reg-page-questions">First Name*</label> <input type="text" title="" class=" required ee-reg-page-questions ee-reg-page-text-input fname" id="fname-46-0-1" name="fname" value="" /> Since the label’s “for” is “fname,” the input should have an id “fname,” but instead it has id=”fname-46-0-1″ and name=”fname.” |
|
The error about the & being escaped is in the context of the data attribute being used: <code><pre> <div data='id=1&event_category_id=viikonloppu&venue_id=1&use_venue_id=1&category_identifier=&staff_id=&allow_override=0&show_expired=false&show_secondary=false&show_deleted=false&show_recurrence=true&limit=0&order_by=NULL&sort=&css_class=NULL&events_per_page=50&num_page_links_to_display=10'></pre></code> |
|
Trying again with that code: <pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”><div data='id=1&event_category_id=viikonloppu&venue_id=1&use_venue_id=1&category_identifier=&staff_id=&allow_override=0&show_expired=false&show_secondary=false&show_deleted=false&show_recurrence=true&limit=0&order_by=NULL&sort=&css_class=NULL&events_per_page=50&num_page_links_to_display=10'> |
|
Hi, Terve, Sorry about the forums code syntax highlighter, it isn’t the best in the world. Might be a good idea to use pastebin. Josh hasn’t been online for a few days so I believe he is still needing to make some further enquiries regarding this, but thanks for the update, it will no doubt help in the research. |
|
Yikes, I’m getting 70 errors on http://www.audarya.org/kurssit/annankatu-alasali-alkeiskurssit/ Most of them of repeats of the above, but there some new ones as well (the first three aren’t caused by the Event Espresso code). |
Besides throwing validation errors, are these causing any issues for the event registration functionality? |
|
|
No functionality issues, but what should I tell my client? |
Is your client requiring that the pages in question validate with no errors? |
|
|
September 19, 2013 at 10:43 am It hasn’t been discussed. Will the new version of Event Espresso be tested for validation? |
We generally do not run validation tests. However, I’ve noted the issue with the html spec that states the label “for” must match the input “ID”. |
|
|
OK, thanks. Another issue that appears to be the source of a lot of errors is “attribute data not allowed on element div at this point.” You might want to mention that to the developers as well. |
The support post ‘HTML5 Validation Errors’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.