Remove all document.querySelector('.SiteLayout__main').innerHTML hacks. #2467
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I initially tried submitting #2464 for Hickenlooper but this was rejected.
I think if such a wholesale hack as replacing the entire HTML of the form is required, there are some deeper issues that should be investigated/resolved. I think this almost defeats the purpose of having step-by-step form filling YAML, at that point you could basically submit a custom payload to the server using a single javascript command rather than creating an arbitrary form and filling it out. These hacks are causing all kinds of trouble on our end including ReCAPTCHA failures.
I'm happy to help find the actual problems that these form-rewrite hacks have been instated to resolve, though so far I've found that each of these forms I've tested is succeeding if you remove the
innerHTML
javascript. Please share details of what problems are encountered for others if these lines are removed, and maybe we can figure out a more elegant/robust solution.