Donate Share

Web Input Completion Kit

Tracker: Feature Requests

5 application/xhtml+xml support - ID: 1694374
Last Update: Tracker Item Submitted ( rvallee )

Current version does not support application/xhtml+xml content type because
of the use of document.write, which is not valid in an XML DOM.

I replaced the document.write code for the following equivalent XHTML DOM
valid code:

// BEGIN CODE
var smartInputFloater = document.createElement("table");
smartInputFloater.id = "smartInputFloater";
smartInputFloater.className = "floater";
smartInputFloater.setAttribute("cellpadding", "0");
smartInputFloater.setAttribute("cellspacing", "0");

var smartInputFloaterRow = document.createElement("tr");
var smartInputFloaterCell = document.createElement("td");

smartInputFloaterCell.id = "smartInputFloaterContent";
smartInputFloaterCell.setAttribute("nowrap", "nowrap");
smartInputFloaterRow.appendChild(smartInputFloaterCell);

smartInputFloater.appendChild(smartInputFloaterRow);
// END CODE


As weird as it sounds, it is neither necessary nor useful to write the
table element to the page as the script still works and doing so crashes
IE6 page loading, at least in my environment.


rvallee ( rvallee ) - 2007-04-04 15:05

5

Open

None

Nobody/Anonymous

None

Next Release (example)

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.