Back from vacation. London was fun as always. Ireland was interesting, but surprisingly rural. But I suppose I'm
just a big city boy. Still, it was nice to breathe fresh air and check out the beautiful countryside.
I actually have no real Irish ancestry, but more Norman (and thus Viking) blood. So I guess my ancestors were
responsible for sacking a lot of the monasteries and generally doing bad things all over Ireland. I was hoping there
would be shirts like "My ancestors sacked Clanmacnoise Monastery and all I got was this lousy T-shirt", but sadly
not.
Otherwise, jet lagged and back at work.
Javascript Challenge
What I would really like would be a way for a user to select text in an HTML document and retrieve the selection
with HTML tags included. Javascript provides a Document.getSelection() method, but this returns only the text
formatted in some approximation of the HTML page. This is not quite what I want, since it can strip off some really
useful tags, that I would like. I'm doing this incidentally to do some funky transformations on HTML tables
selected by the user. I suspect it's impossible, but does any Javascript wizard have an idea that might help me
here? I know there are some further problems (eg, how do you decide which tags to select at the beginning and
end of the text, since they are invisible.), but a basic solution would be most insightful.