Status: New
Owner: ----
Labels: Type-Defect Priority-Low YUI

New issue 1130 by lucas.e.smith: domita.js setInnerHTML converts 0 and false to the empty string
http://code.google.com/p/google-caja/issues/detail?id=1130

node.innerHTML = 0; or = false;

The setter for innerHTML in domita.js includes this:
sanitizedHtml = (htmlFragment instanceof Html
    ? safeHtml(htmlFragment)
    : sanitizeHtml(String(htmlFragment || '')));

In this case htmlFragment is number 0 or boolean false.

This doesn't directly affect YUI porting, but tag applied for tracking.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply via email to