Skip to content

Difference between Phoenix globals and MDN globals #4204

@Gladear

Description

@Gladear

Environment

  • Elixir version (please paste the output of elixir -v):
N/A
  • Phoenix and LiveView versions (mix deps | grep -w 'phoenix\|phoenix_live_view'):
4889426ca118fee49b321f5979eea64179410fa9
  • Operating system:
  • Windows
  • MacOS
  • Linux
  • Other (please specify):
  • Browsers (including version) you attempted to reproduce this bug on (the more the merrier):

Actual behavior

Global attributes include values that are not part of the HTML specification (well, not on the MDN anyway), and lacks some others.

Here's the full list, based on a comparison between MDN and this list:

Exist in Phoenix globals, but not in spec:

  • alt
  • contextmenu
  • height
  • placeholder
  • rel
  • target
  • type
  • width

Exist in spec, but not in Phoenix

  • anchor
  • autocorrect
  • inert
  • virtualkeyboardpolicy
  • writingsuggestions

Expected behavior

I expect both lists to be in sync (best effort, obviously 😄). We noticed that because people started using some of these attributes on components where it should not exist, which caused issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions