Skip to content

Wrong type declaration for attr-lowercase #287

@gian1200

Description

@gian1200

Description

Not sure where is the validation happening, but this warning is a mistake. This property should accepts an array of strings.

https://htmlhint.com/rules/attr-lowercase/

Warning

Image

ENV:

  • OS: Windows 11
  • VSCode version: v1.102.0
  • Extension version: v1.11.1

.htmlhintrc:

{
	"alt-require": true,
	"attr-lowercase": [
		"allowReorder",
		"attributeName",
		"attributeType",
		"autoReverse",
		"baseFrequency",
		"baseProfile",
		"calcMode",
		"clipPath",
		"clipPathUnits",
		"contentScriptType",
		"contentStyleType",
		"diffuseConstant",
		"edgeMode",
		"externalResourcesRequired",
		"filterRes",
		"filterUnits",
		"glyphRef",
		"gradientTransform",
		"gradientUnits",
		"kernelMatrix",
		"kernelUnitLength",
		"keyPoints",
		"keySplines",
		"keyTimes",
		"lengthAdjust",
		"limitingConeAngle",
		"markerHeight",
		"markerUnits",
		"markerWidth",
		"maskContentUnits",
		"maskUnits",
		"numOctaves",
		"onBlur",
		"onChange",
		"onClick",
		"onFocus",
		"onKeyUp",
		"onLoad",
		"pathLength",
		"patternContentUnits",
		"patternTransform",
		"patternUnits",
		"pointsAtX",
		"pointsAtY",
		"pointsAtZ",
		"preserveAlpha",
		"preserveAspectRatio",
		"primitiveUnits",
		"refX",
		"refY",
		"repeatCount",
		"repeatDur",
		"requiredExtensions",
		"requiredFeatures",
		"specularConstant",
		"specularExponent",
		"spreadMethod",
		"startOffset",
		"stdDeviation",
		"stitchTiles",
		"surfaceScale",
		"systemLanguage",
		"tableValues",
		"targetX",
		"targetY",
		"textLength",
		"viewBox",
		"viewTarget",
		"xChannelSelector",
		"yChannelSelector",
		"zoomAndPan"
	],
	"attr-no-duplication": true,
	"attr-unsafe-chars": true,
	"attr-value-double-quotes": true,
	"attr-value-not-empty": false,
	"doctype-first": true,
	"doctype-html5": true,
	"head-script-disabled": true,
	"href-abs-or-rel": "rel",
	"id-class-ad-disabled": true,
	"id-class-value": "dash",
	"id-unique": true,
	"inline-script-disabled": false,
	"inline-style-disabled": false,
	"space-tab-mixed-disabled": "tab",
	"spec-char-escape": true,
	"src-not-empty": true,
	"style-disabled": true,
	"tag-pair": true,
	"tag-self-close": true,
	"tagname-lowercase": true,
	"title-require": true
}

PS: it'd be nice if the validation message shows that it comes from this extension (same way rules do). Had to disable/enable the extension to confirm it's origin.

Metadata

Metadata

Assignees

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