Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Various changes from KA's fork: upstream? #106

Description

@pamelafox

We've been using slowparse at KA for the last three years, and have been slowly adding more features to our fork of it. You can see the diff here:
https://www.diffchecker.com/J4JJcWF2

I'm wondering whether this project is still active, and if so, if you'd like any of those changes upstream.

Ours has these new warnings that help guide people to better HTML/CSS:

  • NO_DOCTYPE_FOUND (warning)
  • HTML_NOT_ROOT_ELEMENT (warning)
  • OBSOLETE_HTML_TAG (warning)
  • INVALID_URL (warning)
  • UNKNOWN_CSS_PROPERTY_NAME (warning, now distinguished from the INVALID error)
  • IMPROPER_CSS_VALUE (warning, spacing issue in color properties)

Ours also has a more restrictive environment, with the following as errors:

  • ELEMENT_NOT_ALLOWED (error, for forbidden tags)
  • EVENT_HANDLER_ATTR_NOT_ALLOWED (error)
  • JAVASCRIPT_URL_NOT_ALLOWED (error)

We also parse for JS errors with esprima.

Would it make sense to go through the effort to create a PR for any of these changes? Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions