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 246642

Summary: Custom elements not working in JSP/PHP/XHTML files
Product: web Reporter: Vladimir Riha <vriha>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2014-08-22 13:42:10 UTC
Please try following steps in either JSP, PHP or XHTML file:
 - open the file in editor
 - paste

<mytag></mytag>

 - enable HTML error checking by clicking on bulb icon next to line 1
 - <mytag> is marked as error, click on the bulb icon next to this line
 - select "Add element "mytag" to the project's custom elements"

=> element should no longer be marked as erroneous, code completion should offer this element. You should be able to declare custom attributes the same way 

Actual result: NetBeans correctly adds the element to [project]/nbproject/customs.js but editor does not take this file into account. Try the same with HTML file, you'll see it works fine there.


Product Version: NetBeans IDE 8.0.1 (Build 201408212300)
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)