Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329759 - folded functions are uncorrectly opened if they contain JavaScript code
Summary: folded functions are uncorrectly opened if they contain JavaScript code
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-09 06:25 EST by tgross CLA
Modified: 2020-05-14 10:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tgross CLA 2010-11-09 06:25:41 EST
Build Identifier: 20100917-0705

folded PHP functions that contain JavaScript code automatically open when any key is pressed.

Reproducible: Always

Steps to Reproduce:
1. create a php-file containing the following code:

<?php
function test1() {
?>
<script type="text/javascript">
</script>
<?php
}
function test2() {
}

3. Fold both functions test1() and test2().

4. Place the cursor at the end of the file, then press RETURN.

Now, the <script>-block inside test1() is partially open. Also, the cursor now is at a different position.
Comment 1 xu jiaxi CLA 2010-11-10 01:31:22 EST
I found the reason for this bug is if the function contains expanded folding html tag, then it will be happend.

Furthermore, I found anther bug for HTML folding in PHP editor, I will report it later.