Hi, I would have done that if I had been not so lazy to found out how the spec goes, or how browsers behave with custom application/...
Thank you for pointing this out. Should I later progress this, I probably change to your suggestion. - Henrik > Instead of using text/html as the type attribute of the script element > why not use something like application/x-factor or someother factor-ish > tag? You can then select based on this rather than the class. > > As an example I do this with with my toy xy interpreter in JavaScript: > > http://www.bluishcoder.co.nz/xyjs/xy.html > > If you view the source of that page you'll see code like: > > <script type="text/x-xy"> > ; pop { a } ; > ; drop pop ; > ; dip swap => / <= ; > ; dup { a \a \a } ; > ; swap { [a b] \b \a } ; > ; jump { [a b] \a \b \a } ; > </script> > > On page load I search for this blocks in: > > http://www.bluishcoder.co.nz/xyjs/xyinline.js > > Chris. > -- > http://www.bluishcoder.co.nz > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
