Hi folks,

I think I need to change the API of domita's attachDocumentStub
method. Right now, the API is:

  function attachDocumentStub(idSuffix, uriCallback, imports) { ... }

  idSuffix - the ID suffix to use for DOM objects owned by this
      instantiation of domita.

  uriCallback - the URI callback to deal with resolving URIs.

  imports - the IMPORTS___ object onto which tamed and/or
      wrapped versions of DOM globals will be attached.

I propose to change it to the following:

  function attachDocumentStub(idSuffix, rootId, uriCallback, imports) { ... }

  rootId - the ID of a DIV that serves as the root of the virtual "document"
      that will be given to the instantiation of domita.

In other words, the container will create a DIV which domita will then
use as its backing object for its implementation of the document
object.

The reason for this is that we need to do stuff with the document
object (e.g., add event handlers) that would be best done if we can
delegate to a "real" underlying DOM node.

My understanding is that 'rootId' need not end with 'idSuffix' for
this scheme to work.

The DIV given by 'rootId' would probably be the *inner* DIV of a
"double-div" allocated by the container, where the outer one would be
styled to clip the inner one in order to secure against phishing.

How does this scheme sound?

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to 
http://groups.google.com/group/google-caja-discuss
To unsubscribe, email [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to