Changeset 5

Show
Ignore:
Timestamp:
07/03/06 01:09:31 (2 years ago)
Author:
al
Message:

hide the aux adobe avg object declaration using width/height

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plotkit/trunk/PlotKit/SVG.js

    r4 r5  
    11// ------------------------------------------------------------------------- 
    2 // NOTES: - Cannot use MochiKit.js, need to include everything individually. 
    3 //        - Need document header hack for Adobe SVG plugin 
    4 // 
    5 // 
     2// NOTES: - If you use XHTML1.1 strict, then you must include each MochiKit 
     3//          file individuall. 
     4//        - For IE support, you must include the AdobeSVG object hack. 
     5//          See tests/svg.html for details. 
    66// ------------------------------------------------------------------------- 
    77// ------------------------------------------------------------------------- 
     
    280280        attrs["d"] = pathString; 
    281281 
    282         var slice = this.createSVGElement("path", attrs); 
    283         this.root.appendChild(slice); 
     282        var elem = this.createSVGElement("path", attrs); 
     283        this.root.appendChild(elem); 
    284284    } 
    285285}; 
  • plotkit/trunk/tests/svg.html

    r4 r5  
    33<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 
    44<head> 
    5    <title>PlotKit: SVGRenderer Test</title> 
    6    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    7    <link href="/css/page.css" media="screen" rel="Stylesheet" 
    8    type="text/css" /> 
    9    <link href="tests.css" media="screen" rel="Stylesheet" type="text/css" /> 
    10     
    11 <script src="/js/mochi/Base.js" type="text/javascript"></script> 
    12 <script src="/js/mochi/Iter.js" type="text/javascript"></script> 
    13 <script src="/js/mochi/DOM.js" type="text/javascript"></script> 
    14 <script src="/js/mochi/Color.js" type="text/javascript"></script> 
    15 <script src="/js/mochi/Format.js" type="text/javascript"></script> 
    16 <script src="/js/mochi/Logging.js" type="text/javascript"></script> 
    17 <script src="/js/mochi/LoggingPane.js" type="text/javascript"></script> 
     5<title>PlotKit: SVGRenderer Test</title> 
     6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
     7<link href="/css/page.css" media="screen" rel="Stylesheet" type="text/css" /> 
     8<link href="tests.css" media="screen" rel="Stylesheet" type="text/css" /> 
     9<script src="/js/mochi/MochiKit.js" type="text/javascript"></script> 
    1810<script src="/js/plotkit/Base.js" type="text/javascript"></script> 
    1911<script src="/js/plotkit/Layout.js" type="text/javascript"></script> 
    2012<script src="/js/plotkit/SVG.js" type="text/javascript"></script> 
    2113<script src="/js/plotkit-tests/svg.js" type="text/javascript"></script> 
     14 
     15<!-- START Required for IE to support  inlined SVG --> 
     16<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" width="1" height="1"></object> 
     17<?import namespace="svg" implementation="#AdobeSVG"?> 
     18<!-- END   Required for IE to support inlined SVG --> 
     19 
    2220</head> 
    2321 
     
    2523    <div id="body"> 
    2624    <h2>SVG Renderer Tests</h2> 
    27  
    28     <object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"></object> 
    29     <?import namespace="svg" implementation="#AdobeSVG"?> 
    30  
    3125    <div id="tests"></div> 
    32      
    3326    <div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>     
    3427</div>