RWD Beta: Test that requires DOCTYPE to be on its own line is failing
See original GitHub issueAffected page
Several. One example is Learn HTML Forms by Building a Registration Form / Step 2
Your code
<!DOCTYPE html><html></html>
Expected behavior
The hint for this step seems to indicate that the user must add the html
element below the DOCTYPE
(there must be at least one new line separating them).
Hint: “Your html
element should be below the DOCTYPE
declaration.:”
So the expected behavior would be that the user will not pass this step until they add the html
element below the DOCTYPE
.
System
- Device: Desktop
- OS: Linux/Fedora 34
- Browser: Firefox
- Version: [e.g. 22]
Additional context
This is happening for several courses. The regex used for this test is not enforcing the newline between the elements. If this requirement is important enough to be enforced then we should probably come up with one regex that enforces this requirement and use it for all courses.
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
step 1 of Rothko Painting - skiping html, head and body tag ...
Responsive Web Design (Beta) - step 1 of Rothko Painting - skiping ... RWD Beta: Test that requires DOCTYPE to be on its...
Read more >The following sections have been defined but have not been ...
It means that you have defined a section in your master Layout.cshtml, but you have not included anything for that section in your...
Read more >MySQL 1064 Error: You have an error in your SQL syntax
The 1064 error displays any time you have an issue with your SQL syntax, and is often due to using reserved words, missing...
Read more >XSL Transformations (XSLT) Version 3.0 - W3C
Abstract. This specification defines the syntax and semantics of XSLT 3.0, a language designed primarily for transforming XML documents into ...
Read more >Testing Guide - OWASP Foundation
ber of possible ways that an application could fail, and organiza- ... testing techniques, and own the validation of security requirements in this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ideally, yes. As I mentioned below, we do have a solution to the comment thing, but it is a work-in-progress.
https://github.com/freeCodeCamp/freeCodeCamp/pull/44625#issuecomment-1003978797
As far as the tests go, I suggest we stick with this:
So, as I can see in the spec, there is no requirement for the DOCTYPE and the
html
element to be on separate lines: