Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

☂️ HTML support #983

Closed
sebmck opened this issue Aug 8, 2020 · 4 comments
Closed

☂️ HTML support #983

sebmck opened this issue Aug 8, 2020 · 4 comments

Comments

@sebmck
Copy link
Contributor

sebmck commented Aug 8, 2020

Parsing

I implemented a pretty awful HTML parser that isn't spec compliant in the slightest. We can expand upon it though and import some spec tests to ensure validity.

Linting

We might want to make some of the JSX and Accessibility lint rules generic and allow accepting HTML.

@sebmck sebmck added task A task, an action that needs to be performed L-HTML Language: HTML umbrella Issue to track a collection of other issues and removed task A task, an action that needs to be performed labels Aug 8, 2020
@ematipico
Copy link
Contributor

Something that I wish to see here is the orchestration of different parsers: when there's a <style>, use the CSS parsing, same thing with <script>.

But maybe this is something that can be done way in the future!

@ematipico
Copy link
Contributor

This resource could help: https://html.spec.whatwg.org/multipage/parsing.html

@cassiebeckley
Copy link

Is anybody working on this? I'd be interested if not.

@ematipico
Copy link
Contributor

Not at the moment @cassiebeckley , you can pick it up if you wish!

What's missing (as far as I know):

  • CDATA parsing
  • parsing of self closing tags

And surely there are more cases that I didn't think about.

If possible, it would be great to change the current parser and make it spec compliant. With did that with our current CSS parser and should do the same with our current HTML parser.

@ematipico ematipico self-assigned this Dec 22, 2020
@jamiebuilds jamiebuilds added this to Backlog in Linting & Project Checking via automation Jun 9, 2021
@jamiebuilds jamiebuilds added this to Backlog in Compiling & Transforming via automation Jun 9, 2021
@jamiebuilds jamiebuilds added this to Backlog in Bundling & Packaging via automation Jun 9, 2021
@jamiebuilds jamiebuilds added this to Backlog in Formatting & Code Generation via automation Jun 9, 2021
@jamiebuilds jamiebuilds added this to Backlog in Parsing & AST via automation Jun 9, 2021
@jamiebuilds jamiebuilds added this to Backlog in Resolution & Analysis via automation Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
L-HTML Language: HTML umbrella Issue to track a collection of other issues
Development

No branches or pull requests

3 participants