Skip to content

Fix wrong reference that was causing #16336#16338

Closed
moqmar wants to merge 2 commits into
go-gitea:mainfrom
moqmar:patch-1
Closed

Fix wrong reference that was causing #16336#16338
moqmar wants to merge 2 commits into
go-gitea:mainfrom
moqmar:patch-1

Conversation

@moqmar
Copy link
Copy Markdown
Contributor

@moqmar moqmar commented Jul 4, 2021

node.Attr[idx].Val is not the same as attr.Val, the latter is an independent object that won't change anything in the document. This fixes #16336, the issue was introduced in #16118.

node.Attr[idx].Val is not the same as attr.Val, the latter is an independent object that won't change anything in the document
@moqmar
Copy link
Copy Markdown
Contributor Author

moqmar commented Jul 4, 2021

Disclaimer: I have no idea what issue the second change that I made might fix, or which new issues it might introduce.

The code was last updated in zeripath@55c3e48, and originally introduced in zeripath@9de1eb0. Maybe @zeripath knows if that was intentional?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 4, 2021
@6543
Copy link
Copy Markdown
Member

6543 commented Jul 4, 2021

I think #16340 just do it

@6543
Copy link
Copy Markdown
Member

6543 commented Jul 4, 2021

@moqmar thanks for digging into and the pull. Since it's already fixed an CI on your pull fail. ill close it. Feel free to reopen if you think there is more to look at

@6543 6543 closed this Jul 4, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Relative paths in Markdown <img> tags not working

3 participants