Scriptaculousのドラッグアンドドロップライブラリを使用してdivを並べ替え可能にするのに問題があります。
<pre id="leftcol">
<div id="id0"><h3>Date and Time</h3><div class="moduleContent"></div></div>
<div id="id14"><h3>Calculator</h3><div class="moduleContent"></div></div>
</pre>
<script type="text/javascript">
Sortable.create("leftcol", {tag:$$('div'), treeTag:$$('pre')});
</script>
SafariのWebInspectorでデバッグしようとすると、次のエラーが発生します。
TypeError: Result of expression 'tagName.toUpperCase' [undefined] is not a function. dragdrop.js:932
dragdrop.jsファイルに問題がありますか、それとも私のコードにありますか?それが私のコードにある場合、どうすれば修正できますか?ありがとう。