Carlana Johnson
511cc3a406
html: add Node.{Ancestors,ChildNodes,Descendants}()
...
Adds iterators for the parents, immediate children, and all children of a Node respectively.
Fixes golang/go#62113
Change-Id: Iab015872cc3a20fe5e7cae3bc90b89cba68cc3f8
GitHub-Last-Rev: d99de580ab
GitHub-Pull-Request: golang/net#215
Reviewed-on: https://go-review.googlesource.com/c/net/+/594195
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 >
Reviewed-by: Damien Neil <dneil@google.com >
2024-10-29 04:13:16 +00:00
Eng Zer Jun
f95a3b3a48
html: fix typo in package doc
...
Change-Id: I3cacfadc0396c8ef85addd062d991bb6f5b0483a
Reviewed-on: https://go-review.googlesource.com/c/net/+/580035
Auto-Submit: Ian Lance Taylor <iant@google.com >
Reviewed-by: Ian Lance Taylor <iant@google.com >
Commit-Queue: Ian Lance Taylor <iant@google.com >
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com >
Auto-Submit: Damien Neil <dneil@google.com >
Reviewed-by: Damien Neil <dneil@google.com >
2024-04-18 22:01:12 +00:00
Roland Shoemaker
eb1572ce7f
html: another shot at security doc
...
Be clearer about the operation of the tokenizer and the parser (and
their differences), and be explicit about the need for re-serialization
when they are being used in security contexts.
Change-Id: Ieb8f2a9d4806fb7a8849a15671667396e81c53b9
Reviewed-on: https://go-review.googlesource.com/c/net/+/484795
Auto-Submit: Roland Shoemaker <roland@golang.org >
Reviewed-by: Damien Neil <dneil@google.com >
Run-TryBot: Roland Shoemaker <roland@golang.org >
TryBot-Result: Gopher Robot <gobot@golang.org >
2023-04-17 17:44:42 +00:00
Roland Shoemaker
08dda57501
html: fix package doc typo
...
Change-Id: Ic16f297e936cf10bafe0656f5db68cd422c430aa
Reviewed-on: https://go-review.googlesource.com/c/net/+/474217
Reviewed-by: Ian Lance Taylor <iant@google.com >
Auto-Submit: Roland Shoemaker <roland@golang.org >
Run-TryBot: Roland Shoemaker <roland@golang.org >
TryBot-Result: Gopher Robot <gobot@golang.org >
2023-03-07 22:09:01 +00:00
Roland Shoemaker
8c4ef2f86b
hmtl: add security section to package comment
...
Adds a short security considerations paragraph to the package comment
detailing the differences between the parser and tokenizer.
Change-Id: I9e6840b20f82ffc6bc4088fffd6b4eda97550c0a
Reviewed-on: https://go-review.googlesource.com/c/net/+/459676
TryBot-Result: Gopher Robot <gobot@golang.org >
Reviewed-by: Damien Neil <dneil@google.com >
Run-TryBot: Roland Shoemaker <roland@golang.org >
Reviewed-by: Rob Pike <r@golang.org >
2023-03-03 16:07:56 +00:00
Frederic Guillot
9dfe398356
net/html: add missing package name in doc example
...
This code snippet should contains the prefix "html" like
other examples to be consistent.
Change-Id: I32428452625c016894aebc2011cde2dd614e6ed9
Reviewed-on: https://go-review.googlesource.com/77830
Reviewed-by: Gabriel Aszalos <gabriel.aszalos@gmail.com >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2017-11-15 15:19:08 +00:00
Dmitry Savintsev
3d87fd621c
x/net/html: Sync the html parser and atom with the current whatwg spec
...
The current documentation as well as set of atoms and attributes has
gotten slightly out of sync with the current state of the WHATWG
html5 specification. The change adds and removes several of the atoms
and attributes, updates the documentation (such as steps numbering in
inBodyEndTagFormatting) and modifies the spec URLs to https://
Change-Id: I6dfa52785858c1521301b20b1e585e19a08b1e98
Reviewed-on: https://go-review.googlesource.com/6173
Reviewed-by: Nigel Tao <nigeltao@golang.org >
2015-03-03 04:37:39 +00:00
David Symonds
8aa6e209cb
net: add import comments.
...
Change-Id: Ifab0fdaec1d810d268b7c19ad30f476802203b37
2014-12-09 14:17:11 +11:00
Nigel Tao
ea127e889c
go.net/html: move exp/html and exp/html/atom here to the go.net
...
sub-repo.
It's a straight copy, except for these modifications:
* "exp/html" and "exp/html/atom" imports were renamed, and
* the "TODO... When this package moves out of exp" comment was
deleted from atom/atom.go.
The matching change is at https://golang.org/cl/7317043
The rationale was discussed at
https://groups.google.com/d/topic/golang-nuts/Qq5hTQyPuLg/discussion
R=adg, remyoudompheng, dave
CC=golang-dev
https://golang.org/cl/7310063
2013-02-11 11:55:20 +11:00