Blogidate bookmarklet: 1-click blog post validation
"Blogidate" is a new bookmarklet that lets you validate the HTML in a blog post before posting it. It works in Mozilla but not in IE or Opera. To use it, choose the version that matches your blog's doctype and drag it to your bookmarks toolbar.
- blogidate html4.01 transitional
- blogidate html4.01 strict
- blogidate xhtml1 transitional
- blogidate xhtml1 strict
Here's a textarea so you can test the bookmarklet on this page:
The blogidate bookmarklet uses the WDG Validator rather than the W3C Validator because WDG's supports direct input. The two validators have few differences in what errors they flag.
Blogidate doesn't work in IE 6 because of IE 6's limit on bookmarklet length. It doesn't work in Opera 7 because Opera doesn't support document.forms on pages created by JavaScript.
I have tested blogidate with Movable Type and Blogger, and I expect it to work with other blog software.
snowchyld suggested the name "blogidate".
August 25th, 2003 at 8:50 am
Using a Firebird nightly from a couple days ago, I get “No Textarias to Validate!”
how is this supposed to work? am I doing something wrong?
August 25th, 2003 at 8:22 pm
I like the idea, but I’m not too keen on popping up a new window with an external validation service. How about an alternative bookmarklet that just validates XML well-formedness (essential for those of us who use XHTML)? I’ve been trying to figure out if that’s possible in Mozilla using the DOMParser object, but it doesn’t look like there’s a way of getting it to tell you if XML is ill-formed. I reckon it would be possible to build such a thing using the Gazingus native javascript XML parser from http://www.gazingus.org/js/?id=104 but you’d need to load it separately using the DOM/script append method as it’s way too big to fit in a bookmarklet.
August 27th, 2003 at 6:15 am
Just for the record, well-formed XML is not valid XHTML. <blockquote>This is quoted text</blockquote> is well-formed, but not valid.
August 28th, 2003 at 7:51 pm
Error: open() has no properties
Source File: javascript:( [removed] )
Line: 1
Double clicking it in the js console brings up a dialog that says “no text areas to validate”
August 28th, 2003 at 7:53 pm
I can’t get it to repeat more than once per session. It doesn’t even work on this comment box at the moment. The XML well-formedness one works, though.
August 28th, 2003 at 8:12 pm
Oh, that last one was cause I forgot to click OK on that dialog.
August 25th, 2003 at 7:09 am
blogidate
tada.. i got to name something nifty if you blog, you should use this.. validation errors are primarily caused by hosed input into blog, and not the engine itself… Jesse Ruderman gives this blog snippet life and even pointed out…
August 28th, 2003 at 8:24 am
Blogidate
Jesse Ruderman Blogidate is a new bookmarklet that lets you validate the HTML in a blog post before posting it….
September 19th, 2003 at 1:35 pm
Jesse Ruderman: Blogidate XML well-formedness
(SOURCE :”jonu”)- Cool hack! Gotta try this.