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 235870 - Weird behaviour of ID/CLASS completion in html tag attributes
Summary: Weird behaviour of ID/CLASS completion in html tag attributes
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P4 normal (vote)
Assignee: Milutin Kristofic
Depends on:
Reported: 2013-09-12 11:38 UTC by Marek Fukala
Modified: 2014-10-06 13:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2013-09-12 11:38:21 UTC
1) create new html file from template
2) add id attribute to the div element in the body
3) type hello inside
4) move caret to the beginning of id attribute value (<div id="|hello"></div>)
5) invoke completion
=> code completion offers "hell"
6) save file
7) repeat from #5
=> cc offers "hello"
8) remove o from hello
9) repeat #5
=> cc still offers "hello"

-> the same problem happens if you do modifications of id/class selectors in embedded css code inside the same html page. The problem does NOT happen when the id/class is declared in a linked stylesheet.

The code completion content is "one char behind" of the actual content of the file. Eg. if anyone does a change in the value, the last char of the text edit is not taken into account.
Comment 1 Marek Fukala 2014-07-28 14:43:07 UTC
still reproducible, quite minor issue though