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

Summary: Element Title must not be empty
Product: editor Reporter: riksoft <riksoft>
Component: Hints & AnnotationsAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.