benibela / benibela/internettools

How to replace Node innerHTML and save it to new string?

Open
#22 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Pascal
Stars
136
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Is it able to replace node innerHTML, like this:

```
for node in process(everydayHtmlString, '//table[@id="zhuye" or @id="fuye"]') do
begin
if node.toNode.getAttribute('id') = 'zhuye' then
begin
node.toNode.innerHTML := aStringContainHTML;
end;
end;
```

and what is the proper way to update `everydayHtmlString` variable to the latest?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names process(...), the XPath selection, node.toNode, and everydayHtmlString; start by tracing how parsed HTML nodes are represented and how the source string is produced. Confirm the supported way to replace innerHTML and serialize the updated tree back into everydayHtmlString, using the zhuye node as the minimal example.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
web-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.