Make non turtle documents text/plain, remove scripts
authorGavin Carothers <gavin@carothers.name>
Mon, 01 Aug 2011 21:32:22 -0700
changeset 105 660a954bbef4
parent 104 5187c2033a91
child 106 4c01bf631a86
Make non turtle documents text/plain, remove scripts
rdf-turtle/index.html
--- a/rdf-turtle/index.html	Tue Aug 02 05:35:24 2011 +0200
+++ b/rdf-turtle/index.html	Mon Aug 01 21:32:22 2011 -0700
@@ -77,7 +77,7 @@
 	  doRDFa: true,
       };
     </script>
-    <script>
+    <script class="remove">
     function updateExample(doc, content) {
     // perform transformations to make it render and prettier
       return '<pre class="example">' + doc._esc(content) + '</pre>';
@@ -177,7 +177,7 @@
 				(described below).
 				</p>
 
-				<pre class="example"><script type="text/turtle"># this is not a complete turtle document
+				<pre class="example"><script type="text/plain"># this is not a complete turtle document
 <http://example.org/path/>
 
 <http://example.org/path/#fragment>
@@ -214,7 +214,7 @@
 				<code>"""long literal"""</code> when they may contain linebreaks.
 				</p>
 
-				<pre class="example"><script type="text/turtle"># this is not a complete turtle document
+				<pre class="example"><script type="text/plain"># this is not a complete turtle document
 "a string"
 """a string"""
 """a string
@@ -231,7 +231,7 @@
 				shortcut for a literal with the type <code>xsd:string</code>.</span>
 				</p>
 
-				<pre class="example"><script type="text/turtle"># this is not a complete turtle document
+				<pre class="example"><script type="text/plain"># this is not a complete turtle document
 "That Seventies Show"
 "That Seventies Show"@en
 "Cette Série des Années Soixante-dix"@fr
@@ -257,7 +257,7 @@
 				or the root of the <a href="#prod-turtle2-collection">collection</a>.
 				</p>
 
-				<pre class="example"><script type="text/turtle"># this is not a complete turtle document
+				<pre class="example"><script type="text/plain"># this is not a complete turtle document
 _:me
 _:a1234
 </script></pre>
@@ -339,7 +339,7 @@
 				<a href="http://www.w3.org/TR/xmlschema-2/#integer">xsd:integer</a>
 				in both syntax and datatype IRI.</p>
 
-				<pre class="example"><script type="text/turtle">
+				<pre class="example"><script type="text/plain">
 # this is not a complete turtle document
 -5
 0
@@ -357,7 +357,7 @@
 				in both syntax and datatype IRI.
 				</p>
 
-				<pre class="example"><script type="text/turtle">
+				<pre class="example"><script type="text/plain">
 # this is not a complete turtle document
 1.3e2
 10e0
@@ -373,7 +373,7 @@
 				in both syntax and datatype IRI.
 				</p>
 
-				<pre class="example"><script type="text/turtle">
+				<pre class="example"><script type="text/plain">
 # this is not a complete turtle document
 0.0
 1.0
@@ -392,7 +392,7 @@
 				in both syntax and datatype IRI.
 				</p>
 
-				<pre class="example"><script type="text/turtle">
+				<pre class="example"><script type="text/plain">
 # this is not a complete turtle document
 true
 false
@@ -407,7 +407,7 @@
 
 				<p>The <code>,</code> symbol may be used to repeat the subject and
 				predicate of triples that only differ in the object RDF term.</p>
-				<pre class="example"><script type="text/turtle">
+				<pre class="example"><script type="text/plain">
 # this is not a complete turtle document
 :subject :predicate :object1 ,
 	:object2 .
@@ -416,7 +416,7 @@
 
 				<p>The <code>;</code> symbol may be used to repeat the subject of
 				triples that vary only in predicate and object RDF terms.</p>
-				<pre class="example"><script type="text/turtle">
+				<pre class="example"><script type="text/plain">
 # this is not a complete turtle document
 :subject :predicate1 :obj1 ;
 :predicate2 :obj2 .