Skip to content

Commit 312450e

Browse files
Volentiegopherbot
authored andcommitted
html: ensure <search> tag closes <p> and update tests
This change ensures that the <search> tag correctly closes an open <p> tag when encountered during parsing. Changes: - Added <search> to the list of elements that should close an open <p> 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/+/655457 Reviewed-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>
1 parent 09731f9 commit 312450e

File tree

5 files changed

+650
-629
lines changed

5 files changed

+650
-629
lines changed

html/atom/gen.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ var attributes = []string{
540540
"scope",
541541
"scoped",
542542
"seamless",
543+
"search",
543544
"selected",
544545
"shape",
545546
"size",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy