Skip to content

html DOCTYPE automatically changes to lowercase 'doctype' #2134

Open
@devvaannsh

Description

@devvaannsh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions