Skip to content

Limit the usage of innerHTML and cssText for safety. - #21871

Open
100pah wants to merge 1 commit into
masterfrom
fix/san
Open

100pah wants to merge 1 commit into
masterfrom
fix/san

Conversation

@100pah

@100pah 100pah commented Nov 25, 2026

Copy link
Copy Markdown
Member

Limit the usage of innerHTML and cssText for safety. Use CSSOM API instead. Relevant modules: tooltip, toolbox.

Brief Information

This pull request is in the type of:

  • bug fixing
  • new feature
  • others

What does this PR do?

Fixed issues

Details

Before: What was the problem?

After: How does it behave after the fixing?

Document Info

One of the following should be checked.

  • This PR doesn't relate to document changes
  • The document should be updated later
  • The document changes have been made in apache/echarts-doc#xxx

Misc

Security Checking

  • This PR uses security-sensitive Web APIs.

ZRender Changes

  • This PR depends on ZRender changes (ecomfe/zrender#xxx).

Related test cases or examples to use the new APIs

N.A.

Merging options

  • Please squash the commits into a single one when merging.

Other information

…PI instead. Relevant modules: tooltip, toolbox.
@echarts-bot

echarts-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

Thanks for your contribution!
The community will review it ASAP. In the meanwhile, please checkout the coding standard and Wiki about How to make a pull request.

The pull request is marked to be PR: author is committer because you are a committer of this project.

⚠️ MISSING DOCUMENT INFO: Please make sure one of the document options are checked in this PR's description. Search "Document Info" in the description of this PR. This should be done either by the author or the reviewers of the PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant