Example at http://opensource.cse.ohio-state.edu/node/126

Lightbox conflicts with the rel="nofollow" filter, which I have enabled in the Basic HTML input format.

Expected result:
Either rel="nofollow" should overwrite rel="lightbox" when filter is enabled (consequently preventing Lightbox in this mode) or Lightbox should first check if the tag has a rel="nofollow" attribute before adding a rel="lightbox" attribute.

Actual result:
Invalid HTML. Both the rel="lightbox" and rel="nofollow" are added to the link. I have no idea whether or not Google will follow that.

Comments

AlexisWilke’s picture

Hi guys,

I just ran in this problem today.

At this time, the rel="nofollow" is removed by the JavaScript. So the HTML is what I'd expect by default. However, I'd like to make sure that both: lightbox & nofollow show up in the final attribute. This is because Google says that they run the JS on pages to make sure that they see what users see in the end (i.e. you could be hiding all the V**a words and have a JS fixing the words on load.)

Could we use jQuery to do the equivalent of addClass() for the rel attribute (i.e. addRel() call.)

Thank you.
Alexis Wilke