HTML validation reports error for certain valid HTML
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 29
### What happened
The following HTML give errors in NB:
` `
NB says that importmap is not a valid script type.
`<iframe width="100%" height="400" src="..."></iframe>`
NB says that the width may not have a % in the property value.
`<img src="..." width="80%" />`
NB says that the width may not have a % in the property value.
### Language / Project Type / NetBeans Component
HTML pages and JSP pages
### How to reproduce
NB reports these errors if HTML validation is turned on and an HTML or JSP page includes the properties on the tags above. It will mark the line in red and the error can be identified in the tooltip that pops up when putting the mouse over the red line.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
MacOS
### JDK
JDK25
### Apache NetBeans packaging
Community provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Reproduce the report with HTML and JSP pages while HTML validation is enabled, using the importmap script type and percentage width values shown in the issue. Trace the validation errors reported in the editor tooltips; done when these valid constructs no longer produce errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100