> Question #1: The Draft Protocol Spec says, "insertion components
> (characters, elementStart, elementEnd) generate items in the output
> document without moving the cursor". Does this mean I need to insert a
> "retain" component after each of the "elementStart" and "characters"
> components in the above document? Or is the document fine as it is?

The document is fine as it is. Every insertion component will move the
cursor past the insertion, so you don't need to retain over
characters/elements at this point: you can just keep inserting.

> Question #2: If I wanted to delete "<a href=...>this</a>" from the
> document, how would I do it? Would I do send this?
>
>  retain(5) // "<p>See "
>  deleteCharacters("this")
>  retain(2) // ".</p>"
>
> ...or would I send something reversible like this?
>
>  retain(5) // "<p>See "
>  annotationBoundary([], ["link/manual"], [null], ["http://
> example.com/"])
>  deleteCharacters("this")
>  annotationBoundary(["link/manual"], [], [], [])
>  retain(2) // ".</p>"

You would have to send the reversible form (which is the main
component of your question) - and while I haven't looked up the exact
declaration of annotationBoundary while writing this email, that looks
about right.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Wave 
Protocol" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/wave-protocol?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to