Skip to content

HTML validation reports error for certain valid HTML #9360

@garthhenning

Description

@garthhenning

Apache NetBeans version

Apache NetBeans 29

What happened

The following HTML give errors in NB:

<script type="importmap">
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTML[ci] enable web jobXMLkind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions