System = Linux 2.6, Firefox 2.00.14, Inline SVG, MochiKit 1.4
MochiKit's "getElementsByTagAndClassName" in the form
getElementsByTagAndClassName (null, 'some-class')
results in the Error message:
"cls.split is not a function" on MochiKit.js line 3079
Test-Example SVG (please adjust the MochiKits?.js's url..):
<?xml version="1.0" encoding="UTF-8"?>
<svg version="1.1" id="svg-root"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
<![CDATA[
- {font: 8pt Myriad Web, Arial, Verdana}
/* Links */
a, *.link {display: inline; padding: 0;
text-decoration: none; font-weight: bold; color: rgb(39,65,255); cursor:
pointer}
]]>
</style>
<script type="text/javascript" xlink:href="/js/MochiKit/MochiKit.js" />
</defs>
<rect id="rect-1" class="rect-class" x="0" y="0" width="800"
height="600" stroke-width="1px" stroke="black" fill="rgb(93%,93%,93%)" />
<line x1="10" y1="500" x2="300" y2="300" stroke-width="2px" stroke="orange" />
<text id="get-element" class="link" x="20" y="20" text-anchor="left">getElement</text>
<text id="get-element-by-tag-and-class-1" class="link" x="20" y="30"
text-anchor="left">getElementsByTagAndClassName (tag, null)</text>
<text id="get-element-by-tag-and-class-2" class="link" x="20" y="40"
text-anchor="left">getElementsByTagAndClassName (null, class)</text>
<script type="text/javascript">
<![CDATA[
connect ($("get-element"), "onclick", function (e) { logDebug
($("rect-1")) });
connect ($("get-element-by-tag-and-class-1"), "onclick", function
(e) { logDebug (getElementsByTagAndClassName('rect', null)) });
connect ($("get-element-by-tag-and-class-2"), "onclick", function
(e) { logDebug (getElementsByTagAndClassName(null, 'rect-class')) });
]]>
</script>
</svg>