mayyangtaiwan / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TextSearchFacet causes rendering error in XHTML files #320

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create an exhibit of your choice in an xhtml file
2. Add a TextSearch facet

What is the expected output? What do you see instead?
I expect the exhibit to get rendered with the TextSearchFacet, but instead,
the exhibit doesn't get rendered and I get 3 javascript errors, with the
following message: 

[Exception... "Component returned failure code: 0x80004003
(NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]" nsresult:
"0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame ::
http://api.simile-widgets.org/ajax/2.2.1/simile-ajax-bundle.js :: anonymous
:: line 1974" data: no]
[Break on this error] B.innerHTML=C;\n

This typically happens when you try to insert invalid XML inside an XML
document (typically, tags missing their close tags). 

Here it comes from text-search-facet.js, where the following input tag
isn't closed: 

Exhibit.TextSearchFacet.constructFacetFrame = function(div) {
    return SimileAjax.DOM.createDOMFromString(
        div,
        "<div class='exhibit-text-facet'><input type='text' id='input'></div>"
    );
};

What version of the product are you using? On what browser and what
operating system?
Linux Ubuntu 9.04 Firefox 3.0.13 w/ Firebug 1.4.2

Original issue reported on code.google.com by sachaz...@gmail.com on 16 Sep 2009 at 9:53

GoogleCodeExporter commented 8 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:37