Open hasn-prevas opened 6 months ago
Is it possible to add a new attribute to an existing HTML tag?
I have tried the following:
{ "$schema": "https://json.schemastore.org/web-types", "name": "Foo attribute", "version": "0.0.1", "contributions": { "html": { "elements": [ { "name": "Foo attribute on script tag", "extension": true, "pattern": { "or": ["script"] }, "attributes": [ { "name": "foo", "value": { "required": false } } ] } ] } } }
foo attribute are now allowed on script tags, but existing attributes (e.g. defer, src etc.) are now marked as errors (in IntelliJ IDEA 2023.3.1 - Build #IU-233.11799.300):
foo
script
defer
src
@hasn-prevas This is correct Web Types definition. It looks like there is a bug on our side. I've filed an issue, please follow: https://youtrack.jetbrains.com/issue/WEB-65042
Is it possible to add a new attribute to an existing HTML tag?
I have tried the following:
foo
attribute are now allowed onscript
tags, but existing attributes (e.g.defer
,src
etc.) are now marked as errors (in IntelliJ IDEA 2023.3.1 - Build #IU-233.11799.300):