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.
Product Version = NetBeans IDE 7.0 Beta (Build 201011152355) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_23 Runtime = Java HotSpot(TM) Client VM 19.0-b09 My project contains, among others, these files: index.php TBuilder.js Index.php contains mainly html code. In the <head> section I have a <script> tag as follows: <script type="text/javascript" src="javascript/Tao/Core/TBuilder.js"></script> Now I want to rename the file TBuilder.js into TAdvancedBuilder.js using refactoring. To do this I right click the file TBuilder.js in the 'projects' pane (top left of the screen) and choose Refactor and then Rename. Next I enter the new filename and click Preview. In the preview refactoring I click the button to do all proposed changes. This results in the script tag mentioned above to be changed into: <script type="text/javascript" src=javascript/Tao/Core/TAdvancedBuilder.jss"></script> Note that the opening " of the src attribute has disappeared and also the extension was changed from .js to .jss . It looks like the new string is placed 1 index position too early. Enjoy.
This looks like web refactoring problem. Marek is't yours?
reproducible, this happens if the html code is parsed using html5 parser.
fixed in web-main#5b7704fdcca5
Integrated into 'main-golden', will be available in build *201102100500* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5b7704fdcca5 User: Marek Fukala <mfukala@netbeans.org> Log: #195103 - Refactoring changes a changed filename incorrectly in the html <script> tag