Skip navigation
Currently Being Moderated

Dreamweaver CS6 Widgets w3 compatible?

May 17, 2013 3:37 PM

Tags: #javascript #spry #html5

Good day all;

I'm currently redoing a website and this time I'm running each and every element that I input through the W3 Validator. I never though that having an error free site was possible; good to see that it is. The only problems that I've encountered thus far are through my inputting widgets on my site; the light lightbox widget to be specific. Here's the error I get from the W3 site "Bad value clearbox[gallery=Gallery,,comment=Sold Puppy] for attribute rel on element a: The string clearbox[gallery=gallery,,comment=sold is not a registered keyword or absolute URL." and when I ran the Javascript bit of the code through Javascript Lint I got the following errors: "lint warning: leading decimal point may indicate a number or an object member", "lint warning: unexpected end of line; it is ambiguous whether these lines are part of the same statement". Does anyone know how to remedy these? I've included a screen capture of the problem also. Your assistance would be greatly appreciated. Is the widget faulty and would you guys encourage widget usage for future projects?

ww3 validator.PNGjs lint.PNG

 
Replies
  • Currently Being Moderated
    May 17, 2013 4:23 PM   in reply to BorneZeus

    What kind of doc type are you using?  If you use XHTML, it's usually just cleaner to put all the JavaScripts into external files.

     

    Some older Lightboxes use non-standard code for identifying groups of images.  I would say, if it ain't broke, don't fix it.  It's nice to have error free code.  But being a good web developer is knowing when to leave it alone. 

     

     

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 18, 2013 11:02 AM   in reply to BorneZeus

    You would need to re-write your entire JavaScript code to recognize the data= attribute or find another Lightbox that already uses it.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 18, 2013 11:40 AM   in reply to Nancy O.

    Here's an interesting quote I got from a discussion of this very issue on another forum -

     

    Imho, since using rel will not affect any penalties, say for instance with search engines or with browsers (technically - all US's at the current time continue to recognize it), then I fail to see why it would be important (at this stage of the html5 development, and the current state of 'things' in general on the web in this regard.


    I.e, unless there is good reason for persuing an alternative, I see no good reason for an effort to 'deal with' this in some other fashion.

     
    |
    Mark as:
  • Currently Being Moderated
    May 18, 2013 3:58 PM   in reply to BorneZeus

    If you're still pursuing this holy grail, get Fancybox 2.1.4

    Fancybox2 is a flexible lightbox alternative that uses valid code and supports all types of media.  

    http://fancyapps.com/fancybox/

     

    Valid code example that comes with the download files.

     

    <a class="fancybox" href="1_b.jpg" data-fancybox-group="gallery" title="Lorem ipsum dolor sit amet"><img src="1_s.jpg" alt="" /></a>

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    May 18, 2013 5:04 PM   in reply to BorneZeus

    That's a very good attitude to have. 

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points