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

fix(createmessage): remediate html structure issue #1595

Merged
merged 2 commits into from
May 25, 2023

Conversation

wescopeland
Copy link
Member

This PR remediates an issue reported here: https://discord.com/channels/310192285306454017/1106029608408723486

Root Cause
The HTML structure for createmessage.php is invalid. Right now, the entire form renders outside its <form> tag.

@wescopeland wescopeland requested a review from Jamiras May 22, 2023 21:29
Copy link
Member

@Jamiras Jamiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why it fixes the problem, but I can confirm that it does.

It's not like the <form> and </form> were nested at different levels.

@wescopeland
Copy link
Member Author

You are correct, they were not nested at different levels. There is something going on in PHP's/Laravel's server-side renderer that I do not understand. The bug can be directly observed in the browser dev tools:

Screenshot 2023-05-23 at 10 13 49 AM

Nesting a form tag within a table tag is perfectly valid HTML, but the output structure by the server is invalid.

@Jamiras Jamiras merged commit 27463ee into RetroAchievements:master May 25, 2023
@wescopeland wescopeland deleted the createmessage-structure branch May 25, 2023 16:19
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

Successfully merging this pull request may close these issues.

2 participants