Freecodecamp: Waypoint: Create a Form Element - Make sure your form has an action attribute which is set to /submit-cat-photo.

Created on 7 Oct 2015  路  32Comments  路  Source: freeCodeCamp/freeCodeCamp

I think I wrote correctly but it doesn't work like I thought :(
30

Most helpful comment

I have same problem. I cant pass through when typing this code in browser Google Chrome. Try Internet Explorer and pass it.

image

All 32 comments

You have it correctly written i went back to mine and i had the same problem.

I am able to pass that test with your code. @krispham, @gwartney21 what OS and browser are you using?

@bugron I am using windows 10 and I am using Google Chrome for my browser

@bugron after adding example form in that task, there is an exception in conosle log (XSS Auditor....) I don't know why it is happens, but I pass this task near month ago.
image

@tva10 I can't replicate that in FF but in Chrome I can see that. I think this is caused by ?solution=.. part.

I still have the same issue. I am unable to pass this test despite typing the right code. This problem only happens on Chrome browser in Windows 10.

I have same problem. I cant pass through when typing this code in browser Google Chrome. Try Internet Explorer and pass it.

image

I passed it using FireFox and it works. Is there any fix for chrome though?

@zorfa you was right, i change my browser and it works. @bugron What's wrong with Chrome :). But thanks you guys for help me.

It looks like both this issue and #3636 are a duplicate of issue #3622

I believe this is caused by a Chromium patch that addresses form actions: http://src.chromium.org/viewvc/blink?view=revision&revision=164538 which addresses this vulnerability report: https://code.google.com/p/chromium/issues/detail?id=331060

Essentially when the common framework script runs safeHTMLRun, preview.write will include a form with an action attribute, trigerring the XSS audit, replacing the action with "data:," in the iframe.

I don't see an obvious way to fix this eloquently, but you could fall back to having the test asserts check editor.getValue's content instead of the iframe DOM.

I can confirm that on Mac OS X, Safari doesn't pas this test either. Firefox does.

If you're Mac then just do it on FireFox.

Mac and Chrome/Safari - is this going to get fixed? I shouldn't have to install another browser for a bug :(

Edit: I did this on Firefox - it passed and continued but when I check my progress on the map back in Chrome it skips over those as being marked complete. So I'm not sure if that is going to count against my progress?

Edit 2: I finished the first section - it does not mark as complete.

If no one is already working this, I can commit to starting a patch for it tonight.

Not sure why the action attribute is getting overwritten:
image

I've had the same problem on Chrome, but was able to validate on Edge.

@ceautery Thanks for relevant links. We assumed that Chrome did not like the form action in the URL. We will have to change these tests to against the editor value instead of loading in the iFrame. Unless someone can figure out how to write a form with an action in an iFrame without throwing the XSS auditor.

@bugron Do you have any ideas?

Same issue on Mac OS X and Chrome. Switched to FireFox and it worked. Although, shouldn't have to switch browsers to add a form element.

fix in the works

Waypoint: Create a Form Element

I ran into this today using OS X Chrome and Safari. Should I create a new issue or can this one be reopened?

I can't get it to work in Firefox on OSX

Just had this same issue with Chrome/Windows 10. Internet explorer worked fine though!

you made syntax mistake:

should be:

you should use not these ' ' , but " "

removed solution by mod

removed solution by mod

Worked for me. I wasn't using closing > for form element before

I had the same problem. Solved with Opera browser. Thank you guys.

I just switched to incognito on chrome, and it worked!

Same problem today, used firefox and it worked perfectly. Thanks

Was this page helpful?
0 / 5 - 0 ratings