Bug 269267 - [content assist] Content assist fails inside an if-statement inside a CDATA block
Summary: [content assist] Content assist fails inside an if-statement inside a CDATA b...
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-18 15:16 EDT by Chris Jaun CLA
Modified: 2013-06-19 11:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2009-03-18 15:16:41 EDT
Build ID: WTP 3.1 m6

Steps To Reproduce:
Enter the following into a script tag in an HTML page...

var b = "hi";
![CDATA[
        if(b.) {
        }
]]

Attempt content assist after the "b." You get no suggestions. 

Remove the CDATA block and content assist works.

Try content assist on b inside the CDATA section, but not in the if-statement and it works.

More information:
Comment 1 Chris Jaun CLA 2009-09-15 13:05:45 EDT
Categorizing JSDT bugzillas for planning purposes.
Comment 2 Simos Xenitellis CLA 2010-04-12 06:21:15 EDT
In addition, 

var myvar = ""+<r><![CDATA[
            this
            is 
            a 
            multi-line
            string
            which is human-readable (good for SQL statements)
            ]]></r>;


does not validate either as valid Javascript in the Javascript environment.

See also bug 281398.