I've been working on a bookmarklet tool which I just upgraded to 1.2
and it works on most every site but flickr.com.

I don't know if I can share all the bits one might need to reproduce
it but I'm putting it out there incase any of you have  a similar
experience ...

When I append my bookmarklet html string to the page, part of the
jQuery clean function is appended into the stream of html I'm
inserting. Below is a sample of html after insertion to the dom. The
"function (m, all, tag)..." is not mine; it seem to be part of jQuery
clean(). I replaced the clean function in jQuery 1.2 with one from
jQuery 1.1.3 and the problem is resolved.

<form id="rdr-spot-form">
<div id="rdr-spot-item" style="">
<div id="rdr-error" class="h1" style="display: none;"/>
<label style="padding-top: 0pt;" for="rdr-categoryList">Type of Item</
label>
function (m, all, tag) { return tag.match(/^(abbr|br|col|img|input|
link|meta|param|hr|area)$/i) ? m : all + ">
"; }
<select id="rdr-categoryList" +="" all="" :="" m="" ?="" i)="" ^(abbr|
br|col|img|input|link|meta|param|hr|area)$="" tag.match(=""
return="" {="" tag)="" all,="" (m,="" function="" name="category"
tabindex="1001">
</select>
<select id="rdr-spotList" +="" all="" :="" m="" ?="" i)="" ^(abbr|br|
col|img|input|link|meta|param|hr|area)$="" tag.match(=""
return="" {="" tag)="" all,="" (m,="" function="" name="spot"
tabindex="1002">
</select>
<textarea id="rdr-subject" +="" all="" :="" m="" ?="" i)="" ^(abbr|br|
col|img|input|link|meta|param|hr|area)$="" tag.match(=""
return="" {="" tag)="" all,="" (m,="" function="" name="title"
tabindex="1003"></" + tag + ">"; }textareafunction (m, all, tag)
{ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/
i) ? m : all + "></" + tag + ">"; }

++++++++

Here's the html I was trying to insert:

rdr.spotHTML = ["<form id='rdr-spot-form'>",
    "<div id='rdr-spot-item' style='display: none;'>",
    "<div class='h1' id='rdr-error' style='display: none;'></div>",
    "<label for='rdr-categoryList' style='padding-top: 0;'>Type of
Item</label>"
].join();

Much as I love flickr.com the javscript on that site looks nasty. This
problem may have something to do with event listeners perhaps?
YAHOO.util.Event.addListener(window, 'load', F._window_onload);

- kai bansner

Reply via email to