Giter Site home page Giter Site logo

celian-rib / vscode-webvalidation-extension Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 3.0 22.58 MB

VSCode extension that let you check if an HTML or CSS file respect the W3C standards.

Home Page: https://marketplace.visualstudio.com/items?itemName=CelianRiboulet.webvalidator

License: MIT License

TypeScript 100.00%
vscode vscode-extension vscode-plugin w3c-validator w3c

vscode-webvalidation-extension's Introduction

Hey there πŸ‘‹ !

I'm CΓ©lian, a french 20 years old CS student driven by passion πŸ‘€ !


Your Ticket to My Galactic Portfolio



πŸ”₯ - Stats - πŸ”₯

TypeScript   8 hrs 14 mins   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–“β–‘   94.48 %
Markdown     12 mins         β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   02.29 %
Other        10 mins         β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   01.93 %
YAML         4 mins          β–’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   00.91 %
Bash         1 min           β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘   00.19 %

πŸ–₯️ - Tools and languages - πŸ–₯️



🎹 - I code in music! - 🎹

vscode-webvalidation-extension's People

Contributors

celian-rib avatar dependabot[bot] avatar rupumped avatar simonvanherweghe avatar tyler-lemke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vscode-webvalidation-extension's Issues

[Feature Request] Automatic Validation

Hello! Thank you very much for the extension, it does wonders.

I'd like to know if it'd be possible to add an automatic validation option to the extension settings, validating and popping up errors on the editor as you code, so there's no need of clicking on a button or saving the document to make the errors show up.

I really think it helps with productivity. There're a few more HTML validation/linting extensions that check the code automatically, but I think they're lacking in rules which VSCode W3C Web Validator accounts for.

Appreciate all the work.

No extension button

I have installed the plugin and it is enabled, however, I cannot find the extension button to run the HTMl validation. I have relaunched VSCode and have a HTML file open, but the extension button is not present. Any ideas how I can fix it? Thanks!

Screenshot 2022-07-07 at 12 02 15

Illegal argument: character must be non-negative

I use a DTD in my HTML to allow the special XML attributes Creative Commons includes in their anchor elements. Specifically, I use
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

When I include this DTD, the extension throws an uncaught error: Illegal argument: character must be non-negative.

Steps to reproduce:

  1. Save the following file in VS Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
                      "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<!-- <!DOCTYPE html> -->
<html lang="en">
<head>
    <title>Error :(</title>
</head>
<body>
    <p>Hi! There's an error :(</p>
</body>
</html>
  1. Click "W3C validation"

I'm pretty sure the above HTML is W3C-compliant, but the extension throws an illegal argument error, viewable in the "RUNTIME STATUS" tab of the extension.

[Feat Request] Validate partials

It would be nice if this extension also validated HTML partials (without html, head and body tags).

All this tags could be "implied" if not present in an HTML document.

Disable Extension for CSS

Hello!
I would like to validate my HTML code only without any CSS, or at least not in the .css files. Could there be an option to disable the extension for CSS files or CSS in general?
Thank you!

Extension startup deprecation warning

(Use `Code Helper (Renderer) --trace-deprecation ...` to show where the warning was created)
/Applications/Visual Studio Code.app/Contents/Resources/app/out/bootstrap-fork.js:5```

more detailed notification

The first validation attempt lasted for 1min showing "W3C validation ..." and ended up with "An error has occured". I guess it's because of some online connection either for downloading the validator or for the validation itself.

The second attempt succeeded, so this is not a major issue.

But it would still be helpful to clarify the notification if it's doing anything online, otherwise it would be confusing why "W3C validadtion ..." takes 1min for an empty html.

Cannot See any warnings

It does not give me the warnings, only the errors. I would like to have an option to see the warnings too,

W3C Extension: "An error has occurred."

Hi,

I've installed the extension by recommendation of my teacher to validate my html files. However, when I try to run it, I receive the message: "An error has occurred." See the below image:

image

I just clicked on the on the blue check mark on the bottom left and this happened. Any idea how to solve this? My teacher says I have several mistakes in my file but I need to validate to find them.

Stray doctype error.

Currently, the extension (only version 1.3.0) is telling me that truly valid HTML is actually invalid. I keep getting errors that seem to indicate that the HTML from my file is getting wrapped inside the body of another HTML file before being validated, so a bunch of stray tag errors show up. See below to get an idea of what I mean.

HTML code such as this:

<!DOCTYPE HTML>
<html lang="en">
<head>
    <title>Untitled</title>
</head>
<body>
	
</body>
</html>

Will get errors like this:

html_validator_errors

Even though the official validator will say this:

2023-04-11 16_09_31-Showing results for contents of text-input area - Nu Html Checker β€” Mozilla Fire

An error has occurred

The extension fails to validate code and instead displays "An error has occurred". I've tried to disable, uninstall, re-install but nothing seems to work.

Unknown Error occurred

Unknown Error occurred

I don't know when happens, But when I opened vs code today And clicked on 'w3c validation' for validation it asked me an error occurred. Also, I don't install any extension or not change any config.
It worked fine last night.

Capture

My internet and also all other things work perfectly.
Please check!

Specify type of HTML

Hi,
Looks like my doctype for XHTML (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">) is not taken in account. (I do not have warnings I should got). Beside I got error Obsolete doctype. Expected β€œ<!DOCTYPE html>”.error(W3C_validation) On the doctype.

Is there a way to specify which HTML type to verify ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.