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 221367 - Add id and class to HTML hierarchy breadcrumb
Summary: Add id and class to HTML hierarchy breadcrumb
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
: 225671 (view as bug list)
Depends on:
Blocks: 235150
  Show dependency tree
Reported: 2012-11-02 15:21 UTC by Vagabond
Modified: 2014-10-06 13:27 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Vagabond 2012-11-02 15:21:29 UTC
Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02

The html hierarchy breadcrumb is now shown as
html > body > div > div

The following would be better
html > body > div#results > div.even-line.result
Comment 1 pekarna 2013-02-03 13:59:09 UTC
*** Bug 225671 has been marked as a duplicate of this bug. ***
Comment 2 Marek Fukala 2013-09-05 13:08:32 UTC
The current implementation is not in html.editor itself. The breadcrumbs is provided by csl.api which just takes the tree structure of StructureItems for the edited html document and shows nodes for the path corresponding to the root->leaf node. 

The display name of the node is taken from StructureItem.getName() at BreadCrumbsTask:189 so I have no way to change it.

A way to customize the displayName is needed here. Possibly some node decorator could be even more suitable.

I think a minimum csl.api change would be to introduce sg. like ExtendedStructureItem which contains a method used to set the node's displayname. The html.editor then can implement this.

AFAIK Svata has been considering some deeper changes to csl.api so lets wait for his opinion.