Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Bold tags in an anchor's title attribute?

  • joomar
  • joomar's Avatar Topic Author
  • Offline
  • New Member
More
16 years 1 month ago #12360 by joomar
Hi Joomla works,

Are the bold tags in the title-attribute really necesary?
...or even meant to be there?


<!-- JW "Simple Image Gallery PRO" Plugin (v1.2) starts here -->
<div id="sigid0" class="sig"><div class="sig_cont"><div class="sig_thumb"><a href="www.test.com/images/slideshows/200803141/1_mars.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Mars in 3D</b>" target="_blank"><img alt="Click image to open!" title="Click image to open!" src="www.test.com/images/slideshows/temp/36430_2d2923eba6e0e82af7f3363814e05264.jpg" />
www.test.com/images/slideshows/200803141/2_mars.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Mars in Photographic view
</b>
" target="_blank"><img alt="Click image to open!" title="Click image to open!" src="www.test.com/images/slideshows/temp/36430_fe521708926af901d7591e7b9583583d.jpg" />
www.test.com/images/slideshows/200803141/3_crab.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Crab Nebula
</b>
" target="_blank"><img alt="Click image to open!" title="Click image to open!" src="www.test.com/images/slideshows/temp/36430_3a83d549e4939c16df8600cf946e4d91.jpg" />
www.test.com/images/slideshows/200803141/4_crab.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Crab Nebula historic overlay
</b>
" target="_blank"><img alt="Click image to open!" title="Click image to open!" src="www.test.com/images/slideshows/temp/36430_4590f1608effa21b0472540432293aa1.jpg" />
www.test.com/images/slideshows/200803141/5_andromeda.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Andromeda Galaxy
</b>
" target="_blank"><img alt="Click image to open!" title="Click image to open!" src="www.test.com/images/slideshows/temp/36430_c46e86cd8442eb800a9b8851584a2508.jpg" />

<div class="sig_clr"></div>
</div>
<!-- JW "Simple Image Gallery PRO" Plugin (v1.2) ends here -->


Looks like really dirty HTML.
It caught my attention, when one of our custom made mambots screwed up the page because of this.
Our mambot searched for the first occurence of an </b> or </B> tag and inserts a <div class="inner_content"> after it to exclude the usually first (bold) paragraph that is an intro text.

It doesn'nt really matter what our mambot does, but with the bold tags in the anchor's title attribute it created this:

<!-- JW "Simple Image Gallery PRO" Plugin (v1.2) starts here -->
<div id="sigid0" class="sig"><div class="sig_cont"><div class="sig_thumb"><a href="www.test.com/images/slideshows/200803141/1_mars.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Mars in 3D</b><div class="inner_content">" target="_blank"><img alt="Click image to open!" title="Click image to open!" src="www.test.com/images/slideshows/temp/36430_2d2923eba6e0e82af7f3363814e05264.jpg" />


For some reason, it showed this portion of the source visibly in the page: " target="_blank">


Again, are these bold tags really necessary?

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
16 years 1 month ago #12361 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: Bold tags in an anchor's title attribute?
Hi my friend!

I don't think so that the bold is necessary!
But if you want to "include" some css class in the code, you need to escape the (") symbol! with slash (/) or double slash (//)!

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • joomar
  • joomar's Avatar Topic Author
  • Offline
  • New Member
More
16 years 1 month ago #12362 by joomar
You're welcome... but I think you misunderstood me.
Our mambot (or the div/css/class it inserts) has nothing to do with the problem.

I do not want to include this <div class="inner_content"> anywhere in the gallery code. The <div class="inner_content"> is simply the output of a mambot NOT related to the gallery. This div just needs to be inserted on a special place in every one of our content items (not gallery output).

But because the gallery outputs these funny bold tags into the value of the title attribute of the anchor tag (...do you see the absurdity), that's why that mambot screwed up. 

In short: The SIG Pro gallery creates illegal HTML output!
The following example a-tag is original SIG Pro output not manipulated by any mambot:
<a href="www.test.com/images/slideshows/200803141/1_mars.jpg" class="thickbox" rel="lightbox[sig0]" title="<b>Mars in 3D</b>" target="_blank">

Why is this <b> even in the <a>-tags???

Again: I think this is illegal HTML, opening the second bracket before you close the first one.

This needs to be fixed.

Please Log in or Create an account to join the conversation.

More
16 years 1 month ago #12363 by alpracka
Replied by alpracka on topic Re: Bold tags in an anchor's title attribute?
This unpretty solution even makes my Joomla page invalid XHTML.

Solution for v1.2 (Joomla 1.5): in file /plugins/jwsigpro.php delete all <b> and </b> tags.

Please Log in or Create an account to join the conversation.