HTML Input date with php value marked as error
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 17
### What happened
In a PHP web page, this code
```php
```
is marked as error with this message
Bad value " " for attribute "value" on element "input": The literal did not satisfy the date format.
### How to reproduce
Open a web project of type PHP and in a php page paste:
```php
```
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Debian 11
### JDK
JDK 11 - /usr/lib/jvm/java-11-openjdk-amd64
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
This happens because the value of the attribute value is seen as a literal text instead of a php variable, despite it's a php page.
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce the warning in a PHP web project using the shown date input on a PHP page, then trace the HTML validation path that handles PHP attribute values. Done means the PHP variable is not treated as literal date text and the input is no longer marked with the date-format error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, php
- Domain
- tooling, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100