Skip to content

input[pattern]:not([required]) should be valid on empty string #261

@Jaaap

Description

@Jaaap

All major browsers allow empty values on inputs with a pattern without the required attribute.
HtmlUnit'sisValid() returns false in that case.

Please check for !isRequired() in HtmlInput.isPatternValid()

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