This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262727 - False 'bad vaule for attribute "lang"' error reported in JSP
Summary: False 'bad vaule for attribute "lang"' error reported in JSP
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP Parser (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@javaee
Depends on:
Reported: 2016-07-08 07:25 UTC by agallardo
Modified: 2016-07-08 07:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

Bad value " " for attribute "lang" ... error screenshot (40.87 KB, image/png)
2016-07-08 07:25 UTC, agallardo

Note You need to log in before you can comment on or make changes to this bug.
Description agallardo 2016-07-08 07:25:21 UTC
Created attachment 160313 [details]
Bad value "  " for attribute "lang" ... error screenshot

Steps to reproduce:

1. Create a jsp, e.g.:

<%@page pageEncoding="UTF-8" 
        contentType="text/html" %>

    private String getLanguage() { return "de"; };
<html lang="<%= getLanguage() %>">

2. The IDE highlights the line with the html opening tag '<html lang="<%= getLanguage() %>">' and reders the following error upon hoovering:

> Bad value "  " for attribute "lang" on element "html": The language subtag "  " is not a valid language subtag.
> Syntax of language tag:
> [...]

(See screenshot)