freeCodeCamp: Spacing breaking test: Learn HTML by Building a Cat Photo App - Step 12
Describe the Issue
A camper managed to fail the challenge despite having a close enough correct solution for the challenge. It even displays correctly in the browser.
Affected Page
Your code
<p>See more <a href="https://freecatphotoapp.com"> cat photos </a> in our gallery.</p
Expected behavior
I do not believe the tests should be failing if there are spaces around the words “cat photos” in the anchor element. The user should be proceeding to another challenge.
Screenshots
No response
System
- Device: Desktop
- OS: Windows 10
- Browser: FireFox
- Version: 118.0.2
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 28 (24 by maintainers)
They shouldn’t be messing with that
pelement in the first place in step 13. I think step 12 is more relevant for this issue.And yes, a lot of people add extra spaces in the link text and get bit by this. This was mentioned in issue #49023 and I think the consensus is that a test should be added specifically to check for the extra white space.
I would normally agree that extra white space should not be an issue and the tests should not be so strict about it. But for link text I can see the reasoning. If you add extra white space after “photos” then you will see the underline on the link extend past the word “photos” into the white space after the word. This is one of those few instances where white space actually does make a difference.
yeah sorry I was too engrossed in learning regex xD You can check the second test I have updated it.
Hey, I am a first-timer and I would like to solve this issue