Closed drrajeshtalluri closed 4 years ago
Hi @drrajeshtalluri you'll probably have more luck getting answers to your questions on our discourse or slack channels. See here for more: https://julialang.org/community/
Github issues are useful when you are reporting a bug.
Hi, I was trying to use Gumbo.jl to manipulate the DOM by changing tags and content of nodes. However, I am confused with some code.
If I wanted to change/ replace the first
<span>
node to a<abc>
nodeThe following does not work
I have to assign this in the parents children for it to work. For which I have to know the position of the node in the parent node.
Is this behavior intended? I thought both parents children and the child node should point to the same location.
Also I see that the information about position in parent is present in
index_within_parent
. I was wondering if it would be possible to add this information for each node in addition to parents children and attributes. If we have this information then we could overcome the above issue.Please let me know your thoughts or if I am approaching this entirely in the wrong direction. Is there a more straight forward way to manipulate the Nodes?