Re: [Htmlparser-user] Cannot change A HREF
Brought to you by:
derrickoswald
From: Magnus O. H. <ma...@ma...> - 2009-10-28 11:05:57
|
I've discovered that my source had a double space before the href attribute, like this: <a href="..."> Seems the extra space is included with the attribute name, as a setAttribute(" " + "href", ...) actually changes the value in my source. This may be something to classify as a bug? Whitespaces in HTML are probably very often incosistent... Thanks, Magnus Magnus Olstad Hansen wrote: > Hi, > > I have trouble changing the content of the HREF attribute of an A-tag. > I've tried both TagNode.setAttribute("href", ...) and also > TagNode.removeAttribute("href") followed by TagNode.setAttribute("href", > ...). But - the href value seems to remain unchanged - any ideas? > > Is the new value validated by HTML Parse somehow? > > Thanks, > Magnus > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Htmlparser-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-user > |