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

Limit the div HTML attributes scope #186

Merged

Conversation

borodovisin
Copy link
Contributor

In this PR we limit the HTML attributes in the PayPalHostedField component.

In the previous version, the component was receive any kind of random HTML attributes including event handlers.

Not we allow only this list as available props: [id, className, lang, title, style, align].

@borodovisin borodovisin requested a review from a team as a code owner October 6, 2021 22:54
@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #186 (3da001a) into main (f39e384) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #186   +/-   ##
=======================================
  Coverage   88.23%   88.23%           
=======================================
  Files          18       18           
  Lines         357      357           
  Branches      110      110           
=======================================
  Hits          315      315           
  Misses         42       42           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f39e384...3da001a. Read the comment docs.

Copy link
Contributor

@gregjopa gregjopa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 💯

@gregjopa gregjopa merged commit 072ecae into paypal:main Oct 8, 2021
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.

None yet

3 participants