-
Notifications
You must be signed in to change notification settings - Fork 24
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
Bigfix/paymill js #28
Conversation
ping @tonipinel Could you please check this feature? :) EDIT: Already merged ;) Thanks @sfblaauw |
if (oPaymill.bOkNumber !== true) { | ||
var oLiNumber = document.createElement('li'); | ||
oLiNumber.innerText = 'Card number invalid'; | ||
oLiNumber.innerHTML = 'Card number invalid'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to use innerHTML
here because your content is not an HTML content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
innerText
do not print anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad: it appears innerText
is not a standard, this may explain why it's not printed (http://stackoverflow.com/a/19032002)
I suggest the use of textContent
property :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oLiNumber.value
? this will print <li value="0"></li>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry @sfblaauw , updated my answer :D
@mickaelandrieu changed! |
@sfblaauw can you squash your commits ? Thank you for your fix :) |
de4535b
to
d1d47d4
Compare
Done! |
@sfblaauw good job 👍 |
Thanks 🎉 |
No description provided.