question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strict whitespace test

See original GitHub issue

Describe the Issue

Overly strict whitespace tests

Affected Page

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-15

Your code

      <fieldset>
        <label>Enter Your First Name: <input> </label>
        <label>Enter Your Last Name: <input> </label>
        <label>Enter Your Email: <input> </label>
        <label>Create a New Password: <input> </label>
      </fieldset>

Expected behavior

The space between the input element and closing label tag shouldn’t matter, right?

Screenshots

No response

System

All

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jeremyltcommented, Jul 7, 2022

Trim won’t remove spaces in the middle. We are comparing against: 'Enter Your First Name: <input>'

0reactions
Sboonnycommented, Jul 7, 2022

Yes, this line while be unnecessary.

include a space after the colon.

And the test will check for `EnterYourLastName:

But I maybe misunderstanding something

Read more comments on GitHub >

github_iconTop Results From Across the Web

How strict should you be about indentation/white space?
Yes, that's the right response. The indentation style should be consistent for all code. A big part of the value of consistent indentation ......
Read more >
Rendering modes - white-space (strict) - QuirksMode
Test page for white-space: pre in quirks and strict mode. This paragraph has many tabs, hard returns and spaces in its source code....
Read more >
Trailing whitespace in pem test vector · Issue #3522 - GitHub
This causes a failure in the openssl test suite when I attempt to apply strict whitespace checking for private key loading.
Read more >
[llvm-dev] [FileCheck] Fix --strict-whitespace --match ... - Mailing Lists
cat DUMP | FileCheck CHECK --strict-whitespace --match-full-lines >>>> CHECK:3:16: error: expected string not found in input >>>> // CHECK-NEXT: bla3 ...
Read more >
test/Format/style-on-command-line.cpp - native_client ... - Google Git
RUN: clang-format -style="{BasedOnStyle: Google, IndentWidth: 8}" %t.cpp | FileCheck -strict-whitespace -check-prefix=CHECK1 %s.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found