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 245025 - Adding custom elements is case insensitive
Summary: Adding custom elements is case insensitive
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 06:44 UTC by Vladimir Riha
Modified: 2014-07-28 06:59 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 Vladimir Riha 2014-06-13 06:44:46 UTC
If I use following in HTML file

<myDirective></myDirective>

and click on bulb icon and select "Add element mydirective to the project's custom elements", then "mydirective" is added (all lower case) and the error does not go away. If I manually edit nbproject/customs.json and change cases, it works OK so the problem is with adding elements.


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1
Java: 1.7.0_60; Java HotSpot(TM) Client VM 24.60-b09
Runtime: Java(TM) SE Runtime Environment 1.7.0_60-b19
System: Linux version 3.13.0-29-generic running on i386; UTF-8; en_US (nb)
Comment 1 Marek Fukala 2014-07-24 12:16:24 UTC
changeset:   276044:9d7d3fda6a49
summary:     #245025 - Adding custom elements is case insensitive

Fixed by adding a little heuristic - the error which the hint is based on is from the nu.validator which unfortunately converts the case by itself. So now the code tries to get the document text at the error position and extract the correct element name. I hope this will work in most cases.

I completely forgot how the custom html content support is cool :-)))
Comment 2 Quality Engineering 2014-07-25 02:37:55 UTC
Integrated into 'main-silver', will be available in build *201407250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9d7d3fda6a49
User: Marek Fukala <mfukala@netbeans.org>
Log: #245025 - Adding custom elements is case insensitive
Comment 3 Vladimir Riha 2014-07-28 06:59:10 UTC
Works for me, thank you

Product Version: NetBeans IDE Dev (Build 201407280405)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)