2009/dap/ReSpec.js/test-spec index.html,1.15,1.16

Update of /sources/public/2009/dap/ReSpec.js/test-spec
In directory hutz:/tmp/cvs-serv14556/test-spec

Modified Files:
	index.html 
Log Message:
Added support for data-transform attribute.
Fixed pre.example handling so it uses innerHTML instead of TextContent.

Index: index.html
===================================================================
RCS file: /sources/public/2009/dap/ReSpec.js/test-spec/index.html,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- index.html	22 Feb 2010 23:15:37 -0000	1.15
+++ index.html	24 Feb 2010 15:45:37 -0000	1.16
@@ -33,6 +33,10 @@
           wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/43696/status",
       };
 
+      function hilight(r, content) {
+        return '<em>' +content+ '</em>' ;
+      }
+
       function fixSchema(r, content) {
         return r._esc(content);
       }
@@ -191,7 +195,12 @@
       <p>The example below is from an external file:</p>
       <pre class='example' data-include='include-schema.xsd' data-oninclude='fixSchema'></pre>
     
-    </section>
+      </section>
+
+      <section>
+      <h2>Transforming content</h2>
+      <p>Transforming content is also easy! <span data-transform='hilight'>this text is hilighted by being wrapped in an 'em'</span>.</p>
+      </section>
 
     <section class='appendix'>
       <h2>Acknowledgements</h2>

Received on Wednesday, 24 February 2010 15:45:41 UTC