仅在Firefox中的JQuery AJAX异常:“节点无法插入层次结构中的指定点”(HierarchyRequestError)

非常奇怪的问题:我有一个2部分的下拉列表,选择一个州将添加第二个下拉列表,为您提供该州的MSA区域列表.

这是通过对控制器的JQuery Get请求来完成的,该控制器返回Select下拉列表中的区域列表,例如

jQuery(function($) {
  // when the #area_state field changes
  $("#area_state").change(
    function() {
      // make a call and replace the content
      var state = $('select#area_state :selected').val();
      if(state == "") state="0";
      jQuery.get(
        '/getmsas/' + state,function(data){ $("#msas").html(data); }
      )
    return false;
    }
  );
})

注 – 此代码改编自此处的教程:http://www.petermac.com/rails-3-jquery-and-multi-select-dependencies/

这在Chrome和IE中运行良好,但在Firefox(13.0.1)中它不起作用,产生两个错误

Error: junk after document element
Source File: http://localhost:3000/getmsas/Connecticut
Line: 2,Column: 1
Source Code: