servo / servo/html5ever

Stripping of bad input

Open
#301 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.6k
Forks
288
Avg merge
2d 22h
Merged PRs (30d)
8

Description

This is a feature request for the ability to “correct” bad input, by stripping away parts that are not conforming to the spec. This is mostly useful for sanitizers, especially for pages that want to ensure that their contents are valid HTML.

This is a feature request for html5ever because of the intimate knowledge of the spec required.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing html5ever's existing parsing and sanitization entry points alongside the HTML5 specification, since the issue names no files or tests. Define how nonconforming input should be identified and which parts may be stripped; done means exposing a documented way for sanitizers to produce valid HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.