Comment #11 on issue 1115 by chiragshah1: Caja HTML parser doesnt respect XML namespaces
http://code.google.com/p/google-caja/issues/detail?id=1115
That makes sense to me, but it seems to be the way custom os-template[1] tags are implemented in Shindig (if i understand it correctly).
Neko ignores the xmlns attribute on script elements during the initial parse and considers everything inside as text.
After the initial parse org.apache.shindig.gadgets.parse.GadgetHtmlParser#reprocessScriptForOpenSocial()[2] reprocess all script nodes individually.
There are other similar examples that fail in TemplateBasedTagHandlerTest when CajaHtmlParser is used.
[1] - http://opensocial-resources.googlecode.com/svn/spec/1.0/OpenSocial-Templating.xml#rfc.section.10.4.1 [2] - http://github.com/apache/shindig/blob/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/parse/GadgetHtmlParser.java#L293
