google-code-export / fancybox

Automatically exported from code.google.com/p/fancybox
1 stars 0 forks source link

Links containing a trailing 'a' or 'A' character inside the href="" break when fancybox called with 'type':'inline' #94

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a simple anchor tag wrapped around an image, anchor tag calls a page 
with content to show inline.
2. Apply fancybox to the anchor tag, but force it to {'type':'inline'}
3. Place a trailing "a" character inside your href="" attribute (ala 
example.php?a)

What is the expected output? What do you see instead?
Any href="" tag that does not have a trailing 'a' displays like it should when 
clicked.

When clicking any href="" tag that contains a trailing 'a' character (eg 
href="sofa" or href="example.php?food=salsa", which current page contents will 
get shoved into the fancybox window and the close icon will be inside rather 
than outside.

What version of the product are you using? On what operating system?
Newest, 1.3.4, OS X snow leopard.  Occurs in firefox, chrome, and safari

Please provide any additional information below.

Here is a demo of the problem, using a 1.3.4 Fancybox kit:

Correctly working version, no {'type':'inline'):
http://www.felonyflats.com/fancybox/test.html

Broken version with a forced {'type':'inline'}:
http://www.felonyflats.com/fancybox/test_forced.html

zipfile of the above:
http://www.felonyflats.com/fancybox/fancybox_broken_demo.zip

My over the shoulder guess is that Fancybox/etc is incorrectly parsing 
something somewhere and thinks that an trailing "a" (or "A") character inside 
an href="" attribute is actually another anchor link or something.

Original issue reported on code.google.com by humancl...@gmail.com on 20 Nov 2010 at 8:35