Support » Plugin: GD Rating System » One W3 Validation Error

  • Resolved justatest47

    (@justatest47)


    Hi, I found one W3 Validation error, otherwise this is a very clean plugin. I could fix this error myself but in the next plugin update the file will overwrite and I will have to fix it over and over again so its better YOU fix it from your end:

    Error: Bad value for attribute name on element input: Must not be empty.
    button”>Submit Rating</button></div><input type=”hidden” value=”0″ name=”” /><span aria-hidden=”true”

    The problem is you left name empty “”

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    The name is missing on purpose, and it is required if the form has to be submitted and field processed, and the main purpose is to avoid that here, so name is not set.

    W3 Validation is often wrong about things, and I can’t find anywhere in HTML5 specs that input fields have to have names. Can you send me the validation URL or link to W3 reference they are showing?

    You are correct that input fields don’t need to have names, but if you are using the name attribute, the value of this shouldn’t be an empty string.

    So <input type="hidden" value="0"> is valid, but <input type="hidden" value="0" name=""> isn’t.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.