Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322493

Summary: [Content Assist] html tag proposal is missing in case of prefix
Product: [WebTools] WTP Source Editing Reporter: Roy Ganor <ganoro>
Component: wst.htmlAssignee: Rakesh <rakes123>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: rakes123, thatnitind
Version: 3.2Flags: nsand.dev: review+
Target Milestone: 3.2.2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch nsand.dev: iplog+

Description Roy Ganor CLA 2010-08-12 05:32:28 EDT
One of our users mentioned in a post that when having a prefix of a tag the tag is not provided.

Example:
1. create a new empty html file
2. hit Ctrl+Space - see that <html> tag proposal is provided
3. exit the content assist mode and write in the file "<ht"
4. hit again ctrl+space 

The user expectation was to get <html> tag proposal 

current - no proposals are provided
Comment 1 Rakesh CLA 2010-08-25 12:54:14 EDT
Created attachment 177442 [details]
patch

Whenever document is completely empty addEmptyDocumentProposals() is called, which computes all these proposals. As soon as we type something document is not empty, thats why we don't see any proposal.If we can treat document without DocType as empty then this small patch works .If we want to deal with document without doctype as separate , then we may need to do large(relatively) change for a infrequent scenario.Let me know if i should take second approach.
Comment 2 Nick Sandonato CLA 2010-08-25 15:06:26 EDT
Changes look good. Thanks, Rakesh.