# `Bylaw.HTML.Check`
[🔗](https://github.com/ryanzidago/bylaw/blob/v0.1.0-alpha.2/lib/bylaw/html/check.ex#L1)

Behaviour for checks that validate rendered HTML.

Each check receives a small validation context containing the original HTML
string and the parsed document term produced for that HTML.

# `context`

```elixir
@type context() :: %{html: String.t(), document: term()}
```

Validation context passed to an HTML check.

`html` is the original rendered HTML string. `document` is the parsed HTML
document term produced for that string.

# `result`

```elixir
@type result() :: :ok | {:error, [Bylaw.HTML.Issue.t(), ...]}
```

The result returned by an HTML check.

# `validate`

```elixir
@callback validate(context()) :: result()
```

Validates rendered HTML for one check.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
