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

Bug 487032

Summary: [HTML][assist] style attribute completes incorrectly
Product: [ECD] Orion Reporter: Carolyn MacLeod <Carolyn_MacLeod>
Component: JS ToolsAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Michael_Rennie, Olivier_Thomann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Carolyn MacLeod CLA 2016-02-02 12:25:57 EST
In an HTML file, type the following line:
 <div sty></div>

Now put the caret after sty and type Ctrl+Space.
 <div sty></div>

The expected result is:
 <div style=""></div>

But instead, content assist gives this incorrect completion:
 <div <style></style>></div>
Comment 1 Carolyn MacLeod CLA 2016-02-02 12:29:23 EST
Hmmm... same if I type
 <a hr></a>
and try to complete the 'href' attribute...
I get
 <a <hr></hr>></a>
which is completely unexpected.
Comment 2 Olivier Thomann CLA 2016-02-02 13:00:50 EST
I'll take a look at it.
Comment 3 Carolyn MacLeod CLA 2016-02-02 13:48:50 EST
You might need to try more than just the one line to get the results.
Here's what I was using (look for hr):

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Multi-line textarea</title>
</head>
<body>
	<h1>Multi-line textarea</h1>
	<a hr></a>
	<textarea rows="20" style="width: 800px;">
function test(){
	var foo1 = bar.lastIndexOf(char, from);
}
//Keep editting in this demo and try the content assit, probem validations and hover service!
var foo2 = foo.
	</textarea>
</body>
</html>
Comment 4 Curtis Windatt CLA 2016-02-02 14:21:01 EST
Are you running a self-host against master?  It is working fine for me while self hosting.  orion.eclipse.org server is quite a few builds back.
Comment 5 Curtis Windatt CLA 2016-02-02 14:22:31 EST
(In reply to Curtis Windatt from comment #4)
> Are you running a self-host against master?  It is working fine for me while
> self hosting.  orion.eclipse.org server is quite a few builds back.

I get the originally described behaviour on orion.eclipse.org but using the code from master everything is correct.  Closing as WORKSFORME.