Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing nested content in self-closing elements #134

Open
pixelastic opened this issue May 18, 2017 · 0 comments
Open

Preventing nested content in self-closing elements #134

pixelastic opened this issue May 18, 2017 · 0 comments

Comments

@pixelastic
Copy link

The following (invalid) code will pass through pug-lint:

body
  input(type="text") Foo

But, if passed through pug will yield the following error:

input is a self closing element: <input/> but contains nested content.

I think that everything that would make pug fail to compile should be caught by pug-lint, when possible.

I'm using pug-lint v2.4.0 on Ubuntu (installed through yarn).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant