Title: HTML (In)validation
Last modified: August 22, 2016

---

# HTML (In)validation

 *  [jave.web](https://wordpress.org/support/users/javeweb/)
 * (@javeweb)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/html-invalidation/)
 * Hi, the plugin itself works fine, but creates serious validation problem.
    And
   I am **not** talking about the style element, which IS possible to move into 
   the head element, e.g. you could use a javascript to put it there dynamicly, 
   or even use style attribute, not style element… (and I am not really sure about
   that, but there should be some way of hooking your styles into the wp_head)
 * **Anyway** the error I am much more concerned about is ID duplication: you are
   outputing the same random id for all poll answers (e.g. yop-poll-li-answer-1_yp54d23e0ad3984-
   1)
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

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

 *  Plugin Author [YOP](https://wordpress.org/support/users/yourownprogrammer/)
 * (@yourownprogrammer)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/html-invalidation/#post-5751061)
 * Hello
 * We have just released a new version that should fix this issue.
 * Best
    YOP Team
 *  Thread Starter [jave.web](https://wordpress.org/support/users/javeweb/)
 * (@javeweb)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/html-invalidation/#post-5751079)
 * Yes the ID thing is fixed.
 * I am also glad that you did try to do something with the styles, however there
   are still some minor issues…
 * 1) Yes, you used the scoped attribute right, but you’ve put the styles in the
   wrong place beacuse “If the scoped attribute is present and the element has a
   parent element, then the style element must precede any flow content in its parent
   element other than inter-element whitespace and other style elements, and the
   parent element’s content model must not have a transparent component.”
    So it
   still gives error because there is a widget heading outputted before the widget
   content.
 * Easy fix => wrap your widget’s output with a div and place style as a FIRST element
   of that div.
 * 2) If you use link tag inside the body, you should add a property attribute with
   a value of stylesheet to it – “property=’stylesheet'”

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

The topic ‘HTML (In)validation’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jave.web](https://wordpress.org/support/users/javeweb/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/html-invalidation/#post-5751079)
 * Status: not resolved