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

Bug 338368

Summary: The build-in IE9 of Eclipse3.6.2 does not support the new tags of HTML5.
Product: [Eclipse Project] Platform Reporter: zhaojian <zhaoj>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed, pwebster, thatnitind
Version: 3.6.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Running result in IE9.
none
Running result in eclipse3.6.2. none

Description zhaojian CLA 2011-02-28 03:00:30 EST
Build Identifier: 20110218-0911

In the environment of Win7 with IE9 installed, the build-in IE9 browser in Eclipse3.6.2 does not support new tags of HTML5, while they are supported by IE9 browser.

Reproducible: Always

Steps to Reproduce:
1.Create a file test.html with HTML5 tab,the content of file is as follows:

<!DOCTYPE HTML>
<html>
<body>
<canvas id="myCanvas">your browser does not support the canvas tag </canvas>
<script type="text/javascript">
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);
</script>
</body>
</html>

2.Open the file using IE9.
3.Create the dynamic Web project test in Eclipse3.6.2, copy test.html file to the project, and open the file using Web Browser.
Comment 1 zhaojian CLA 2011-02-28 03:05:59 EST
Created attachment 189912 [details]
Running result in IE9.
Comment 2 zhaojian CLA 2011-02-28 03:12:14 EST
Created attachment 189913 [details]
Running result in eclipse3.6.2.
Comment 3 zhaojian CLA 2011-03-16 01:40:34 EDT
(In reply to comment #2)
> Created attachment 189913 [details]
> Running result in eclipse3.6.2.

Additional remarks:
After <meta http-equiv="X-UA-Compatible" content="IE=9"></meta> element has been added to the html file, eclipse will support html5 tab. The sample content is as follows:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9"></meta>
</head>
<body>
<canvas id="myCanvas">your browser does not support the canvas tag </canvas>
<script type="text/javascript">
var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);
</script>
</body>
</html>
Comment 4 zhaojian CLA 2011-03-16 02:09:51 EDT
Additional remark.
Comment 5 zhaojian CLA 2011-03-16 02:29:15 EDT
(In reply to comment #4)
> Additional remark.

When undefining the <meta> element in the IE 9, html5 tags can be displayed.In the eclipse environment,the <meta> element must be added to the html file for tags can be displayed. I hope eclipse can provides some function to control the <meta> element,or still display html5 tags without the <meta> element. 

Thanks!
Comment 6 Grant Gayed CLA 2011-05-17 12:55:22 EDT

*** This bug has been marked as a duplicate of bug 328609 ***