If you want to check for this problem automatically, one option is to add automated web unit tests that include syntax validation. Most testing frameworks these days handle Javascript without a problem.
Jevon On Thu, Feb 12, 2009 at 9:59 AM, Chris Hope <[email protected]>wrote: > Also > $("<a>") > > should be > > $("a") > > > 2009/2/12 Cam Spiers <[email protected]> > > I know this is unrelated but img tags are self closing: ie in the form >> <img/> >> >> Cheers, >> Cam >> >> On Wed, Feb 11, 2009 at 9:25 PM, Sid Bachtiar <[email protected]>wrote: >> >>> >>> No, but you can inspect the area where you expect to see the missing >>> element, which would reveal the problem. >>> >>> On Wed, Feb 11, 2009 at 9:21 PM, anru chen <[email protected]> wrote: >>> > >>> > how? >>> > >>> > will firebug give any error message? >>> > >>> > regards >>> > >>> > >>> > >>> > On Wed, Feb 11, 2009 at 5:45 PM, Sid Bachtiar <[email protected]> >>> wrote: >>> >> >>> >> Should be easy to spot using firebug. Or firebug lite in IE >>> >> >>> >> On Wed, Feb 11, 2009 at 4:58 PM, ctx2002 <[email protected]> wrote: >>> >>> >>> >>> thought this is helpful to other developers too. >>> >>> >>> >>> I am developing a jquery script. >>> >>> I am use this $("<a>").html("<img alt='example' src='example.jpg></ >>> >>> img>") >>> >>> to dynamically adding a "img" tag inside "a" tag. (note, >>> >>> src='example,jpg has no closing single quote ). >>> >>> >>> >>> in firefox, "img" tag showed up, but in IE and opera "img" tag did >>> not >>> >>> show up, >>> >>> so i have spent 2-3 hours try to find out why? >>> >>> then finally found out that "closing single quote problem". >>> >>> >>> >>> my question is, are there any tools to prevent this type of error? >>> >>> or any good practices to prevent this type of error. >>> >>> > >>> >>> >>> >> >>> >> >>> >> >>> >> -- >>> >> Blue Horn Ltd - System Development >>> >> http://bluehorn.co.nz >>> >> >>> >> > >>> >> >>> > >>> > > >>> > >>> >>> >>> >>> -- >>> Blue Horn Ltd - System Development >>> http://bluehorn.co.nz >>> >>> >>> >> >> >> > > > -- > Chris Hope > The Electric Toolbox Ltd > > Email: [email protected] > Web: www.electrictoolbox.com > Phone: +64 9 522 9531 > Mobile: +64 21 866 529 > > > > --~--~---------~--~----~------------~-------~--~----~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] -~----------~----~----~----~------~----~------~--~---
