I found that putting the attributes of the HTML element in the wrong says "invalid syntax" #7427
justgage
commented
justgage
closed this
justgage
reopened this
alistermada
commented
@justgage The code's in freecodecamp\seed\challenges\01-front-end-development-certification\html5-and-css.json
on line 1867.
jmmarco
commented
Also I find it interesting that there's no talk of putting a " />" at the end.
The <input>
is an void tag. It doesn't require an end tag.
paycoguy
commented
Would changing the regular expression from
/URL\\s*[\"\\']\\s*\\/?>/gi
to
/\\s*[\"\\']\\s*\\/?>/gi
be a valid fix? Or is this too lenient?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Challenge Add Placeholder Text to a Text Field has an issue.
User Agent is:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
.Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
The main problem is this:
this does not work:
this does:
Both are perfectly valid html form what I understand.
Also I find it interesting that there's no talk of putting a " />" at the end.