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

html DOCTYPE automatically changes to lowercase 'doctype' #2134

Open
devvaannsh opened this issue Feb 16, 2025 · 0 comments
Open

html DOCTYPE automatically changes to lowercase 'doctype' #2134

devvaannsh opened this issue Feb 16, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@devvaannsh
Copy link
Contributor

devvaannsh commented Feb 16, 2025

Describe the bug

When I create a new file, the HTML boilerplate includes , but as soon as I hit save, it automatically changes to <!doctype html>. This also happens when I manually write , which is unexpected behavior.

Screen.Recording.2025-02-16.233743.mp4

Reproduction

  1. Create a new html file.
  2. Phoenix will automatically write the boiler plate code or you can manually type it.
  3. Hit save, and notice that the DOCTYPE changed to lowercase.

Expected behavior

The DOCTYPE declaration should remain in uppercase () since it is the widely accepted convention. It would be a good idea to ensure that it always stays in uppercase.

OS, Browser and Phoenix versions

OS: Windows 11
Browser: Chrome, firefox
Phoenix versions: Release 4.0 build 4.0.4-20879 build timestamp: 2025-01-31T11:08:35.454Z

@devvaannsh devvaannsh added the bug Something isn't working label Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant