Skip to content

Adds baseline status to html elements and attributes#113

Merged
aeschli merged 1 commit intomicrosoft:mainfrom
rviscomi:baseline-html
Apr 23, 2025
Merged

Adds baseline status to html elements and attributes#113
aeschli merged 1 commit intomicrosoft:mainfrom
rviscomi:baseline-html

Conversation

@rviscomi
Copy link
Copy Markdown
Contributor

@rviscomi rviscomi commented Apr 8, 2025

Progress on microsoft/vscode-css-languageservice#427

Similar to #111, this adds baseline info to the generated HTML data to be shown in element and attribute hovercards

All changes:

  • adds new baseline and browsers objects to all supported HTML elements, element-specific attributes, and global attributes, in the same format as the one used by the CSS data
  • adds all missing (non-deprecated) elements
    • search
    • fencedframe
    • selectedcontent
  • adds a few missing element-specific attributes
    • img[fetchpriority]
    • input[popovertarget]
    • input[popovertargetaction]
    • button[popovertarget]
    • button[popovertargetaction]
  • adds all missing global attributes
    • autocorrect
    • autofocus
    • enterkeyhint
    • inert
    • nonce
    • popover
    • virtualkeyboardpolicy
    • I intentionally did NOT add anchor, which is non-standard
  • adds descriptions and valueSets for elements and attributes as needed

The missing elements and attributes were kind of important to add because they tend to be newer features, and developers would benefit from having clearer browser support info for those in particular.

@aeschli
Copy link
Copy Markdown
Contributor

aeschli commented Apr 23, 2025

👍 Thanks @rviscomi !

@aeschli aeschli marked this pull request as ready for review April 23, 2025 13:49
@aeschli aeschli enabled auto-merge (squash) April 23, 2025 13:49
@aeschli aeschli merged commit 4264dcc into microsoft:main Apr 23, 2025
2 checks passed
@rviscomi rviscomi deleted the baseline-html branch April 23, 2025 14:47
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.

3 participants