Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: convert CheckSelectColumn plugin to native HTML for CSP safe code #1332

Merged
merged 4 commits into from
Jan 16, 2024

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Jan 15, 2024

  • change Column interface name to also accept DocumentFragment
  • change headerColumnValueExtractor to also accept DocumentFragment
  • add getHtmlStringOutput() util to get HTML from any type of input (string, number, HTMLElement or DocumentFragment), which is especially useful with DocumentFragment which doesn't return HTML by default

I think (hope) this is the last piece to convert to native element for CSP safe approach

- change Column interface `name` to also accept `DocumentFragment`
- change `headerColumnValueExtractor` to also accept `DocumentFragment`
- add `getHtmlStringOutput()` util to get HTML from any type of input (string, number, HTMLElement or DocumentFragment), which is especially useful with `DocumentFragment` which doesn't return HTML by default
Copy link

codecov bot commented Jan 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (abe344b) 98.5% compared to head (ec25dbc) 98.5%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1332     +/-   ##
========================================
+ Coverage    98.5%   98.5%   +0.1%     
========================================
  Files         198     198             
  Lines       21278   21283      +5     
  Branches     7099    7097      -2     
========================================
+ Hits        20943   20948      +5     
  Misses        335     335             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghiscoding ghiscoding merged commit 2b9216d into master Jan 16, 2024
7 checks passed
@ghiscoding ghiscoding deleted the feat/checkbox-plugin-csp branch January 16, 2024 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants