build(deps): bump github.com/beevik/etree from 1.5.0 to 1.5.1
Bumps [github.com/beevik/etree](https://github.com/beevik/etree) from 1.5.0 to 1.5.1. - [Release notes](https://github.com/beevik/etree/releases) - [Changelog](https://github.com/beevik/etree/blob/main/RELEASE_NOTES.md) - [Commits](https://github.com/beevik/etree/compare/v1.5.0...v1.5.1) --- updated-dependencies: - dependency-name: github.com/beevik/etree dependency-version: 1.5.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
+1
@@ -12,3 +12,4 @@ Martin Dosch (mdosch)
|
||||
Hugo Wetterberg (hugowetterberg)
|
||||
Tobias Theel (nerzal)
|
||||
Daniel Potapov (dpotapov)
|
||||
Mikhail Ferapontow (MikhailFerapontow)
|
||||
|
||||
+7
@@ -1,3 +1,10 @@
|
||||
Release 1.5.1
|
||||
=============
|
||||
|
||||
**Fixes**
|
||||
|
||||
* Fixed a bug in `InsertChildAt`.
|
||||
|
||||
Release 1.5.0
|
||||
=============
|
||||
|
||||
|
||||
+1
-1
@@ -831,7 +831,7 @@ func (e *Element) InsertChildAt(index int, t Token) {
|
||||
}
|
||||
|
||||
if t.Parent() != nil {
|
||||
if t.Parent() == e && t.Index() > index {
|
||||
if t.Parent() == e && t.Index() < index {
|
||||
index--
|
||||
}
|
||||
t.Parent().RemoveChild(t)
|
||||
|
||||
Reference in New Issue
Block a user