Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form submits to data:, on Chrome V55 after first submit when including HTML with JavaScript #7

Open
gburghardt opened this issue Jan 20, 2017 · 0 comments

Comments

@gburghardt
Copy link

In Google Chrome (version 55, Windows 7 Pro) the action attribute of the <form> tag changes from / to data:, if you include HTML and JavaScript in the code snippet, and after the first time you submit the form.

Steps:

  1. Go to http://hilite.me

  2. Enter the following code in the snippet editor:

    <button type="button" data-action="remove">Remove Phone</button>
    
  3. Click the "Highlight" button

  4. Open the developer console and inspect the <form> tag

  5. The action attribute is now data:, instead of /

This causes the page URL to change to "data:," in the browser when clicking the "Highlight" button again.

In Firefox and Internet Explorer, the action attribute remains /.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant