Skip to content

Commit

Permalink
HTML: remove spaces around <title> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jul 16, 2024
1 parent f50b46a commit 400c636
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 @@ -33,6 +33,7 @@ func TestHTML(t *testing.T) {
{`<style><!--\ncss\n--></style>`, `<style><!--\ncss\n--></style>`},
{`<style>&</style>`, `<style>&</style>`},
{`<html><head></head><body>x</body></html>`, `x`},
{"<html><head><title> a </title>\n<link></head></html>", `<title>a</title><link>`},
{`<meta http-equiv="content-type" content="text/html; charset=utf-8">`, `<meta charset=utf-8>`},
{`<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />`, `<meta charset=utf-8>`},
{`<meta http-equiv=" content-type " content=" text/html; charset=utf-8 ">`, `<meta charset=utf-8>`},
Expand Down
2 changes: 1 addition & 1 deletion html/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var tagMap = map[Hash]traits{
Th: blockTag,
Thead: blockTag,
Time: normalTag,
Title: normalTag,
Title: blockTag,
Tr: blockTag,
Track: normalTag,
U: normalTag,
Expand Down

0 comments on commit 400c636

Please sign in to comment.