• Am I missing something, or does the “Press It” bookmarklet generate invalid XHTML when the current URL has ampersands in it? It sure seems to for me.

Viewing 7 replies - 1 through 7 (of 7 total)
  • If YOU put the ampersands into the URL, then YOU are creating the invalid XHTML, not the bookmarklet.
    Unless, of course, I’m wrong, in which case you can ignore me. ??

    I helped on a blog once where the operators did all there own install and admin etc including the blog roll import. That generated no less than 275 validation errors. Furthermore because of the way the validator works it would not validate my underlying stuff which I knew had a few errors until the first layer was straightened out. What was a simple pro bono design became a validation nightmare. Ampersands in urls?. They suck.

    Thread Starter Anonymous

    I’m just clicking the bookmarklet when visiting a page. Since ampersands in URLs on said pages are fairly common, I’m wanting the bookmarklet to encode them as it builds the post. It doesn’t, so I have to catch all the ampersands in what it copies and manually edit them. I’m hoping there’s a simple call that can be made in the bookmarklet JavaScript to encode as it copies.

    Thread Starter Anonymous

    Well – I visited back after a long while to see if there had been any responses, but there aren’t. Anyone?

    NuclearMoose-
    Keep in mind, almost all .asp and ColdFusion sites use ampersands in the URLs. We can’t control the URLs of the people we link to.

    Thread Starter Anonymous

    Right, as do many other GET-generated dynamic sites. I was hoping we could look for them and convert them automatically. Doesn’t look like it’s going to happen, though, unless I learn the JavaScript myself ??

    Thread Starter Anonymous

    What we need to do is tell the site authors we’re not linking to them because their crufty URLs invalidate our code, not change a good system to accommodate their crappy one.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bookmarklet and invalid XHTML (ampersands)’ is closed to new replies.