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

Fix label for attribute #90

Merged
merged 2 commits into from
Aug 4, 2019
Merged

Fix label for attribute #90

merged 2 commits into from
Aug 4, 2019

Conversation

X-Ryl669
Copy link
Contributor

Fix #87.
This fixes the missing renaming for label for attribute since this also expect an id (usually from an input)

@coveralls
Copy link

coveralls commented Jul 15, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling a398e80 on X-Ryl669:labelFor into 10ddbd9 on JPeer264:master.

Copy link
Owner

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -80,6 +80,11 @@ const replaceHtml = (code, opts = {}) => {
selectorType = '#';
}

if (node.tagName === 'label' && attr.name === 'for') {
Copy link
Owner

Choose a reason for hiding this comment

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

Could have placed this as || in the if before. But ok for me :)

@JPeer264
Copy link
Owner

@X-Ryl669 seems like one test case is failing

@X-Ryl669
Copy link
Contributor Author

X-Ryl669 commented Aug 4, 2019

I don't know why the test failed (maybe you've tested against a different master than mine?). I've rebased on the current master and all tests are good for me.

Unless stated otherwise, I'll rebase on this one for the next PR.

@JPeer264 JPeer264 merged commit 55ff974 into JPeer264:master Aug 4, 2019
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.

<label for='id'> should be replaced
3 participants