title: Liftweb - WiringUI and attributes bug using AutoComplete
body: <p>My problem is happening when I use some attributes in </p>
  
  <p>I have the following error displayed on my webpage: </p>
  
  <pre><code>error on line 146 at column 80: AttValue: " or ' expected
  </code></pre>
  
  <p>Here is the corresponding line: </p>
  
  <pre><code>try{jQuery("#F114215951950RGX25X").each(function(i) {this.innerHTML = "&lt;span id=\"F114215951957PA3NZS\"&gt;&lt;/span&gt;";});} catch (e) {}
  </code></pre>
  
  <p>Here is the code in my snippet: </p>
  
  <pre><code>import net.liftweb.util.ValueCell
  import http.SHtml
  import net.liftweb.widgets.autocomplete.AutoComplete
  
  object SearchMenu {
  
    /* A valueCell on which WiringUI is used */
    val wiringCell= ValueCell(true)
  
    /* The function called in html template */
    def display = WiringUI.apply(wiringCell)(displayAjax)
  
    /* The cell to be updated using autocomplete */
    val cell = ValueCell("")
  
    /* The function to create and display the autocomplete box */
    def displayAjax(value: Boolean)(ns:NodeSeq):NodeSeq = {
      def buildQueryName(current: String, limit: Int): Seq[String] = {
        if (current.length == 0) Nil
        else (1 to limit).map(n =&gt; current+""+n).take(limit)
      }
      AutoComplete("", buildQueryName _, cell.set _)
    }
  }
  </code></pre>
  
  <p>Here is the code in my HTML page: </p>
  
  <pre><code>&lt;form class="lift:form.ajax"&gt;
      &lt;div class="lift:display"&gt; &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong>Note:</strong> the code works if I call <code>displayAjax(true)</code> instead of <code>display</code>, that is to say, if I don't use Wiring. </p>
  
  <p><strong>Note:</strong> I think the problem might come from the fact that autocomplete uses a script that is not loaded when using Wiring UI. </p>