Closed (fixed)
Project:
Advertisement
Version:
5.x-1.x-dev
Component:
ad module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Apr 2008 at 17:51 UTC
Updated:
24 Aug 2008 at 18:23 UTC
Output of ad links (duplicate REL attribute) and ad_image images (missing ALT attribute) is XHTML-invalid. Attached patch fixes both issues.
Regarding REL attribute: ad.js seems to have been removed in current development snapshot. However, the TARGET attribute is deprecated and not XHTML-valid. I have rewritten the original code to work without a separate JavaScript by using an onclick-handler.
| Comment | File | Size | Author |
|---|---|---|---|
| ad-DRUPAL-5.xhtml_.patch | 2.44 KB | sun |
Comments
Comment #1
jeremy commentedTo review and hopefully commit before next release.
Comment #2
jeremy commentedAre you saying that the only XHTML-valid way to set the target is using JavaScript? Is there any other way?
Comment #3
sunYes, all other ways are either CSS3-based (not yet supported by almost any browser) or DTD-based (a themer's decision).
See http://www.google.com/search?q=xhtml+target&hl=en for further information.
Comment #4
jeremy commentedI have mixed emotions, but I suppose there's not a lot of choice. I'll revisit this.
I did commit the fix for the missing alt tag (and a couple other missing alt tags in the same module).
Comment #5
waddles commentedadserve.inc also spits out duplicate html id attributes when you use javascript. It won't bork the validators but it does cause problems for anyone trying to use jquery css id selectors.
Comment #6
jeremy commentedThis was committed some time back. Updating issue status.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.