-
-
Notifications
You must be signed in to change notification settings - Fork 389
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
fix(templates/show-people): ensure ORCID icon can render multiple times #3131
Conversation
@@ -114,7 +93,23 @@ export default function showPeople(persons = []) { | |||
} | |||
if (p.orcid) { | |||
contents.push( | |||
html`<a class="p-name orcid" href="${p.orcid}">${orcidIcon} </a>` | |||
html`<a class="p-name orcid" href="${p.orcid}" |
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.
I think we want to do orcidIcon.cloneNode(true)
instead, as the previous code was moving orcidIcon
around the parents.
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.
Oh my! What would I do without you!
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.
LGTM but do we need a test?
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.
👍
Fixes https://github.com/w3c/respec/issues/3129
Regression from https://github.com/w3c/respec/pull/3063. Not sure why hyperHTML only rendered last instance.
Filed WebReflection/hyperHTML#401.