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

New invalid HTML warning in general settings when using the latest Chrome #16606

Closed
sarahelsaig opened this issue Aug 22, 2024 · 1 comment · Fixed by #16607
Closed

New invalid HTML warning in general settings when using the latest Chrome #16606

sarahelsaig opened this issue Aug 22, 2024 · 1 comment · Fixed by #16607
Labels

Comments

@sarahelsaig
Copy link
Contributor

Describe the bug

In the latest version of Chrome, visiting ~/Admin/Settings/general raises the following warnings in the browser console:

[Warning] https://localhost:9067/Admin/Settings/general 2168 A em tag was parsed inside of a <select> which was not inserted into the document. This is not valid HTML and the behavior may be changed in future versions of chrome.
[Warning] https://localhost:9067/Admin/Settings/general 2182 A em tag was parsed inside of a <select> which was not inserted into the document. This is not valid HTML and the behavior may be changed in future versions of chrome.

To Reproduce

Steps to reproduce the behavior:

  1. Update to Chrome v128
  2. Go to Admin > Configuration > Settings > General
  3. Press F12 and switch to the Console tab.
  4. Observer the warnings mentioned above.

Note: the same warnings don't show up in Chrome v127.

Expected behavior

Valid HTML.

Logs and screenshots

image

@gvkries
Copy link
Contributor

gvkries commented Aug 22, 2024

Yes, that is invalid HTML and ignored. It is defined in a localization string:

<option value="@ResourceDebugMode.FromConfiguration.ToString()">@T["From environment — disabled in <em>Production</em>, enabled otherwise"]</option>

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

Successfully merging a pull request may close this issue.

2 participants