| OLD | NEW |
| (Empty) |
| 1 <script> | |
| 2 | |
| 3 function test() { | |
| 4 if (window.testRunner) | |
| 5 testRunner.dumpAsText(); | |
| 6 | |
| 7 var undefined; | |
| 8 | |
| 9 var features = [ | |
| 10 ["org.w3c.svg", "1.0"], | |
| 11 ["org.w3c.svg.static", "1.0"], | |
| 12 ["org.w3c.svg.animation", "1.0"], | |
| 13 ["org.w3c.svg.dynamic", "1.0"], | |
| 14 ["org.w3c.dom", "1.0"], | |
| 15 ["org.w3c.dom.svg", "1.0"], | |
| 16 ["org.w3c.dom.svg.static", "1.0"], | |
| 17 ["org.w3c.dom.svg.animation", "1.0"], | |
| 18 ["org.w3c.dom.svg.dynamic", "1.0"], | |
| 19 ["org.w3c.svg.all", "1.0"], | |
| 20 ["org.w3c.dom.svg.all", "1.0"], | |
| 21 | |
| 22 ["http://www.w3.org/TR/SVG11/feature#SVG", "1.1"], | |
| 23 ["http://www.w3.org/TR/SVG11/feature#SVGDOM", "1.1"], | |
| 24 ["http://www.w3.org/TR/SVG11/feature#SVG-static", "1.1"], | |
| 25 ["http://www.w3.org/TR/SVG11/feature#SVGDOM-static", "1.1"], | |
| 26 ["http://www.w3.org/TR/SVG11/feature#SVG-animation", "1.1"], | |
| 27 ["http://www.w3.org/TR/SVG11/feature#SVGDOM-animation", "1.1"], | |
| 28 ["http://www.w3.org/TR/SVG11/feature#SVG-dynamic", "1.1"], | |
| 29 ["http://www.w3.org/TR/SVG11/feature#SVGDOM-dynamic", "1.1"], | |
| 30 ["http://www.w3.org/TR/SVG11/feature#CoreAttribute", "1.1"], | |
| 31 ["http://www.w3.org/TR/SVG11/feature#Structure", "1.1"], | |
| 32 ["http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"], | |
| 33 ["http://www.w3.org/TR/SVG11/feature#ContainerAttribute", "1.1"], | |
| 34 ["http://www.w3.org/TR/SVG11/feature#ConditionalProcessing", "1.1"], | |
| 35 ["http://www.w3.org/TR/SVG11/feature#Image", "1.1"], | |
| 36 ["http://www.w3.org/TR/SVG11/feature#Style", "1.1"], | |
| 37 ["http://www.w3.org/TR/SVG11/feature#ViewportAttribute", "1.1"], | |
| 38 ["http://www.w3.org/TR/SVG11/feature#Shape", "1.1"], | |
| 39 ["http://www.w3.org/TR/SVG11/feature#Text", "1.1"], | |
| 40 ["http://www.w3.org/TR/SVG11/feature#BasicText", "1.1"], | |
| 41 ["http://www.w3.org/TR/SVG11/feature#PaintAttribute", "1.1"], | |
| 42 ["http://www.w3.org/TR/SVG11/feature#BasicPaintAttribute", "1.1"], | |
| 43 ["http://www.w3.org/TR/SVG11/feature#OpacityAttribute", "1.1"], | |
| 44 ["http://www.w3.org/TR/SVG11/feature#GraphicsAttribute", "1.1"], | |
| 45 ["http://www.w3.org/TR/SVG11/feature#BaseGraphicsAttribute", "1.1"], | |
| 46 ["http://www.w3.org/TR/SVG11/feature#Marker", "1.1"], | |
| 47 ["http://www.w3.org/TR/SVG11/feature#ColorProfile", "1.1"], | |
| 48 ["http://www.w3.org/TR/SVG11/feature#Gradient", "1.1"], | |
| 49 ["http://www.w3.org/TR/SVG11/feature#Pattern", "1.1"], | |
| 50 ["http://www.w3.org/TR/SVG11/feature#Clip", "1.1"], | |
| 51 ["http://www.w3.org/TR/SVG11/feature#BasicClip", "1.1"], | |
| 52 ["http://www.w3.org/TR/SVG11/feature#Mask", "1.1"], | |
| 53 ["http://www.w3.org/TR/SVG11/feature#Filter", "1.1"], | |
| 54 ["http://www.w3.org/TR/SVG11/feature#BasicFilter", "1.1"], | |
| 55 ["http://www.w3.org/TR/SVG11/feature#DocumentEventsAttribute", "1.1"], | |
| 56 ["http://www.w3.org/TR/SVG11/feature#GraphicalEventsAttribute", "1.1"], | |
| 57 ["http://www.w3.org/TR/SVG11/feature#AnimationEventsAttribute", "1.1"], | |
| 58 ["http://www.w3.org/TR/SVG11/feature#Cursor", "1.1"], | |
| 59 ["http://www.w3.org/TR/SVG11/feature#Hyperlinking", "1.1"], | |
| 60 ["http://www.w3.org/TR/SVG11/feature#XlinkAttribute", "1.1"], | |
| 61 ["http://www.w3.org/TR/SVG11/feature#ExternalResourcesRequired", "1.1"], | |
| 62 ["http://www.w3.org/TR/SVG11/feature#View", "1.1"], | |
| 63 ["http://www.w3.org/TR/SVG11/feature#Script", "1.1"], | |
| 64 ["http://www.w3.org/TR/SVG11/feature#Animation", "1.1"], | |
| 65 ["http://www.w3.org/TR/SVG11/feature#Font", "1.1"], | |
| 66 ["http://www.w3.org/TR/SVG11/feature#BasicFont", "1.1"], | |
| 67 ["http://www.w3.org/TR/SVG11/feature#Extensibility", "1.1"]] | |
| 68 | |
| 69 for (var i = 0; i < features.length; ++i) | |
| 70 { | |
| 71 var item = features[i]; | |
| 72 if (item[1] == "omitted") | |
| 73 var hasFeature = document.implementation.hasFeature(item[0]); | |
| 74 else | |
| 75 var hasFeature = document.implementation.hasFeature(item[0], item[1]
); | |
| 76 | |
| 77 var item0String = item[0]; | |
| 78 if (typeof item0String == "string") | |
| 79 item0String = '"' + item0String + '"'; | |
| 80 var item1String = item[1]; | |
| 81 if (typeof item1String == "string" && item[1] != "omitted") | |
| 82 item1String = '"' + item1String + '"'; | |
| 83 var message = item0String + ', ' + item1String + ': ' + hasFeature; | |
| 84 | |
| 85 var div = document.createElement('div'); | |
| 86 div.innerHTML = message; | |
| 87 document.body.appendChild(div); | |
| 88 } | |
| 89 } | |
| 90 | |
| 91 </script> | |
| 92 | |
| 93 <body onload="test()"> | |
| 94 </body> | |
| OLD | NEW |