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 228140 - Formatting enters new line if there are multiple calls in onclick attribute
Summary: Formatting enters new line if there are multiple calls in onclick attribute
Status: RESOLVED DUPLICATE of bug 225749
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-01 22:02 UTC by PeraRocha
Modified: 2013-05-23 07:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
lines 1635 and 1644 (135.25 KB, image/png)
2013-04-01 22:02 UTC, PeraRocha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PeraRocha 2013-04-01 22:02:44 UTC
Created attachment 133252 [details]
lines 1635 and 1644

This code:

...?><body onload="gapi.plusone.go();ativa_pub();">...
is being break into this:
...?><body onload="gapi.plusone.go();
ativa_pub();">...
It adds a enter after the event semicolon of JS


and it is giving a non existing error in:
..?><input onfocus="if (this.value == 'pesquisar') ...

It request to make a triple = as mandatory
..?><input onfocus="if (this.value === 'pesquisar') ...
Comment 1 Vladimir Riha 2013-05-22 10:10:13 UTC
To reproduce first issue is reproducible, simply format this html

<div onclick="test();test2();">TODO write content</div>


The second issue, this is only warning, not error. You can disable it in Tools|Options|Editor|Hints, select JavaScript and uncheck "Using === or !== instead of..."
Comment 2 Vladimir Riha 2013-05-23 07:39:41 UTC

*** This bug has been marked as a duplicate of bug 225749 ***