Title: Not passing Markup Validation
Last modified: August 21, 2016

---

# Not passing Markup Validation

 *  [bokou](https://wordpress.org/support/users/bokou/)
 * (@bokou)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/)
 * My site isn’t passing markup validation due to this plugin… it’s telling me:
 * “Attribute ontouchstart not allowed on element div at this point.”
 * It’s referring to the chunk of code on lines 291-297 on wppa-non-admin.php. I’m
   not sure where to start going about fixing this. Simply removing it breaks shadowboxes
   so I suppose if I can’t find some help then I’m stuck just removing that chunk
   and disabling shadowbox
 * [http://wordpress.org/extend/plugins/wp-photo-album-plus/](http://wordpress.org/extend/plugins/wp-photo-album-plus/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/#post-3650476)
 * What is more important to you, passing validation or that swiping works on all
   mobile devices???
 *  Thread Starter [bokou](https://wordpress.org/support/users/bokou/)
 * (@bokou)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/#post-3650479)
 * Seems like a rather “can’t eat your cake and have it too” mentality. It’s possible
   to validate and to have mobile compatibility
 * Ontouch events shouldn’t be in div tags: [http://stackoverflow.com/questions/6552949/where-are-ontouch-events-allow-to-be-why-not-on-divs](http://stackoverflow.com/questions/6552949/where-are-ontouch-events-allow-to-be-why-not-on-divs)
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/#post-3650483)
 * That is puting it through the backdoor where the validator doesn’t see it.
 * wppa-slideshow.php line 159 reads:
 *     ```
       $ontouch = 'ontouchstart="wppaTouchStart(event,\'slide_frame-'.$wppa['master_occur'].'\', '.$wppa['master_occur'].');"  ontouchend="wppaTouchEnd(event);" ontouchmove="wppaTouchMove(event);" ontouchcancel="wppaTouchCancel(event);"';
       ```
   
 * you may change it in
 *     ```
       $ontouch = '';
       ```
   
 *  Thread Starter [bokou](https://wordpress.org/support/users/bokou/)
 * (@bokou)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/#post-3650498)
 * negative, still getting the same four validation errors. I even removed the photo
   of the day which is what I thought may be causing it, but it doesn’t do anything.
 * Attribute ontouchstart not allowed on element div at this point.
 *     ```
       ontouchmove="wppaTouchMove(event);" ontouchcancel="wppaTouchCancel(event);" >
       ```
   
 * I look at the sourcecode lines of the generated homepage that it refers to and
   it’s prefaced by “<!– start WPPA+ Footer data –>” if that points anyone in the
   direction of figuring it out.
 * I suppose I will learn to live with it. I love your plugin but don’t know enough
   outside of basic HTML and CSS to do anything to fix it.
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/#post-3650531)
 * Its also in wppa-non-admin.php, for the lightbox. Sorry i overlooked that.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Not passing Markup Validation’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [markup](https://wordpress.org/support/topic-tag/markup/)
 * [validation](https://wordpress.org/support/topic-tag/validation/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/not-passing-markup-validation/#post-3650531)
 * Status: not resolved