Skip to content

Language service tags autocomplete for textarea and select as errors. #39490

@derekkite

Description

@derekkite

🐞 bug report

Affected Package

Compiler

Is this a regression?

No

Description

This is the error generated from ng build --prod
src/app/shared/user-input/user-input.component.html:5:7 - error NG8002: Can't bind to 'autocomplete' since it isn't a known property of 'textarea'.

5 [autocomplete]="config.autocomplete"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/app/shared/user-input/user-input.component.ts:30:16
30 templateUrl: './user-input.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component UserInputComponent.
src/app/shared/user-input/user-input.component.html:44:7 - error NG8002: Can't bind to 'autocomplete' since it isn't a known property of 'select'.

44 [autocomplete]="config.autocomplete"

🔬 Minimal Reproduction

🔥 Exception or Error

🌍 Your Environment

Angular Version:

Anything else relevant?

https://github.com/angular/angular/blob/master/packages/compiler/src/schema/dom_element_schema_registry.ts#L143,L156 doesn't list autocomplete as an attribute for select and textarea.

This pull in 2017 says the schema was generated from Chrome
#17858

Chrome didn't support autocomplete in textarea and select in 2017. Support was added in 2018

https://www.chromestatus.com/feature/5680387573415936

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: compilerIssues related to `ngc`, Angular's template compilerstate: has PR

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions