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

Bug 488254

Summary: [assist] style tag name completed as a property
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, steve_northover
Version: 11.0   
Target Milestone: 12.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2016-02-22 15:07:24 EST
Consider the following snippet:

<html>
<head>
  <style#caret here></style>
</head>
</html>

place the caret immediately following the 'style' identifier in the opening tag, and activate assist. You get the following completion:

<html>
<head>
  <style=""></style>
</head>
</html>
Comment 1 Steve Northover CLA 2016-02-25 21:37:00 EST
Is this a rare case?  I tried <style> completion in a random html file and it seemed to work.
Comment 2 Curtis Windatt CLA 2016-02-29 17:06:15 EST
I can reproduce this.  The tag completion works fine, but putting the caret at the end of the tag name results in it being completed as an attribute.
Comment 3 Curtis Windatt CLA 2016-02-29 17:26:40 EST
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=48ede501775596789008b3d84ce6f066ea2100ae
Fixed with a new test

With the new parser we know if we have a matching close tag range, so we can be smarter about our proposals. I will file a new bug.