Skip to content

Image Decoding Attribute unnkown to the language Server #953

@abdo643-HULK

Description

@abdo643-HULK

Describe the bug
Trying to add the decoding Attribute on the image tag makes the language server complain that it isn't a valid attribute.
VsCodes lib.dom file includes it and the intellisense autocompletes it because it knows it exists.
It works in the browser as expected because it's a native attribute

To Reproduce
Install the svelte language server.
Create a svelte file and add img tag.
Add the decoding attribute.

Expected behavior
Shouldn't show any errors.
From MDN:

decoding

Provides an image decoding hint to the browser. Allowed values:

sync

  • Decode the image synchronously, for atomic presentation with other content.

async

  • Decode the image asynchronously, to reduce delay in presenting other content.

auto

  • Default: no preference for the decoding mode. The browser decides what is best for the user.

Screenshots
Intellisense
Error

System (please complete the following information):
OS: Windows 10 Education , 20H2
IDE: VSCode
Plugin: Svelte for VSCode

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions