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

Bug 324549

Summary: Support of svg namespace in xhtml file
Product: [WebTools] WTP Source Editing Reporter: Sarika Sinha <sarika.sinha>
Component: wst.htmlAssignee: wst.html <wst.html-inbox>
Status: NEW --- QA Contact: Nitin Dahyabhai <thatnitind>
Severity: enhancement    
Priority: P3 CC: thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Sarika Sinha CLA 2010-09-06 03:15:40 EDT
Build Identifier: M20100811-0800

xhtml file should support the svg namespace

Reproducible: Always

Steps to Reproduce:
xmlns:svg="http://www.w3.org/2000/svg" should be supported in xhtml files and the syntax of svg should be validated in the editor.

Example 1: <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:svg="http://www.w3.org/2000/svg">
<body >
  <svg:svg height="0">
    <svg:clipPath id="c1" clipPathUnits="objectBoundingBox">
      <svg:circle1 cx="0.25" cy="0.25" r="0.25" id="circle"/>
      <svg:rect x="0.5" y="0.2" width="0.5" height="0.8"/>
    </svg:clipPath>
  </svg:svg>
</body>
</html>
Example 2:
<html xmlns="http://www.w3.org/1999/xhtml">
 
<body >
    <p>This page uses frames. The current browser you are using does not support frames.</p>
    <svg xmlns="http://www.w3.org/2000/svg" version="1.1"  >  
     <rect x="0" y="0" width="100" height="100" style="fill:url(#gradient)" />  
   	 <circle cx="50" cy="50" r="30" style="fill:url(#gradient)" />  
   </svg>  
</body>
</html>