Skip to content

Deliver HTMLHint via CDN #281

Closed
Closed

Description

@Shinigami92

Is your feature request related to a problem? Please describe.
There is already a working version that supports HTMLHint via browser.
When we work on #277, we lose this feature :(

Describe the solution you'd like
Deliver an HTMLHint version that can be executed in the browser via a CDN
This allows old school HTML developers and young developers to easily add a script tag
<script src="https://...cdn.../HTMLHint-0.10.0.min.js" />
This inserts HTMLHint into the global scope

Activity

  1. added
    triageAn HTMLHint team member will look at this issue
    feature requestFunctionality that introduces a new feature
    on Aug 29, 2018
  2. PixelDust22 commented on Feb 24, 2019

    @PixelDust22
    Contributor

    The code is now compiled into a umd package. Now this can be done by writing:

    <script src="https://cdn.jsdelivr.net/npm/htmlhint@latest/dist/htmlhint.js"></script>
    <script>
      let messages = HTMLHint.default.verify('<ul><li></ul>', {'tag-pair': true});
      console.log(messages)
    </script>

    See https://github.com/htmlhint/HTMLHint/wiki/Usage

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

    feature requestFunctionality that introduces a new featuretriageAn HTMLHint team member will look at this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions