Skip to content

Commit

Permalink
HTML: keep </p> before </label>
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Sep 30, 2024
1 parent cfa13e4 commit 09137ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions html/html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func TestHTML(t *testing.T) {
{`<a rel="noopener">`, `<a rel=noopener>`},
{`<a rel=" noopener external ">`, `<a rel="noopener external">`},
{`<input accept="image/png, image/jpeg">`, `<input accept=image/png,image/jpeg>`},
{`<p></p></label>`, `<p></p></label>`}, // experimentally found

// increase coverage
{`<script style="css">js</script>`, `<script style=css>js</script>`},
Expand Down
2 changes: 1 addition & 1 deletion html/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var tagMap = map[Hash]traits{
Input: objectTag,
Ins: keepPTag,
Kbd: normalTag,
Label: normalTag,
Label: normalTag | keepPTag, // experimentally, keepPTag is needed
Legend: blockTag,
Li: blockTag,
Link: normalTag,
Expand Down

0 comments on commit 09137ff

Please sign in to comment.