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 268408 - Element Title must not be empty
Summary: Element Title must not be empty
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-07 16:29 UTC by riksoft
Modified: 2016-10-07 16:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description riksoft 2016-10-07 16:29:57 UTC
Problem not present in v 8.1. Only affect 8.2
in my case Build 201609300101

Classic php page with html.
The warning Element "Title" must not be empty
appears in both this cases:

<title><?=$pageTitle ?></title>
or
<title><?php echo $pageTitle ?></title>

maybe because the software simply checks for the presence of text between <title> and </title> excluding anything between < >. That's OK in pure HTML but with PHP  could be better to consider <? ...stuff... ?> as text or, to go even further,  taking into account <?=...anything...?> and <?...echo...?> (simply ignoring if php actually will print something).

However for me a simple <?...?> considered as text whaterver it contains would be sufficient.


By the way, same problem everywhere, e.g.
<option value="1"><?= $myOption ?></option>
gives a warning that "option must not be empty"

To disable that nasty warning I should remove "All Other" HTML hint option but I ignore what other warnings it disables.