nuxt-modules / html-validator

HTML validation for Nuxt

Home Page:https://html-validator.nuxtjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inputs required attributes

provok-me opened this issue · comments

Version

module: 0.1.1
nuxt: 2.14.7

Nuxt configuration

mode:

  • universal
  • spa

Nuxt configuration

No specific configuration.

Reproduction

Steps to reproduce

Using nuxt generate after creating any component including an input with a type attribute.

What is expected?

We expect the module to tell us that there is no no HTML validation errors found since we declared the input's type.

What is actually happening?

Nuxt/Vue seems to add the type attribute only on the client side. So the module throws an error for a case that in the end isn't.

Checklist

  • I have tested with the latest Nuxt version and the issue still occurs
  • I have tested with the latest module version and the issue still occurs
  • I have searched the issue tracker and this issue hasn't been reported yet

@Alphability You're right - how odd! However, this is a Nuxt bug and I've created an issue there - as this module is right to report that as an error.