html: ensure tag closes

and update tests · golang/net@312450e (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 312450e

Volentiegopherbot

authored and

committed

html: ensure tag closes

and update tests

This change ensures that the tag correctly closes an open

tag when encountered during parsing. Changes: - Added to the list of elements that should close an open

tag in parse.go. - Updated the second list in parse.go to ensure consistency. - Updated html/atom/gen.go, table.go, and table_test.go accordingly. - Modified parse_test.go to use strings.Builder instead of bytes.Buffer. - Updated test error messages to follow Go’s conventions. - Fixed an accidental colon in the comment in parse.go. Change-Id: I5835da69f6bb0e14c483e55b7ae82915ae958dc1 Reviewed-on: https://go-review.googlesource.com/c/net/+/655457Reviewed-by: Damien Neil dneil@google.com Reviewed-by: Ian Lance Taylor iant@google.com LUCI-TryBot-Result: Go LUCI golang-scoped@luci-project-accounts.iam.gserviceaccount.com Auto-Submit: Ian Lance Taylor iant@google.com

File tree

5 files changed

lines changed

5 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -540,6 +540,7 @@ var attributes = []string{
540 540 "scope",
541 541 "scoped",
542 542 "seamless",
543 +"search",
543 544 "selected",
544 545 "shape",
545 546 "size",