I'm going to take a stab in the dark and guess what it is that you are up to. Please note that "HTML documents are constrained to conform to the HTML DTD both before and after processing any SCRIPT elements." ( http://www.w3.org/TR/REC-html40/inte....html#h-18.2.4 ) I suspect that you are perpetrating an abomination.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Apart from the "nofollow alternative" with the <an tag the design is that the abbreviations are at the start of text nodes in the DOM. These textual abbreviations are then expanded to arbitrarily complex HTML pieces. If you use a tool like "Firebug" you can see the HTML generated after initial load and should find that it is sound, too, according to any W3C specification.
Having said that, it may also be breaching the W3C spec to introduce new tags like "fb:like" (Facebooks custom "Like" Tag). What do you think about their approach then?
My prime example is the "Facebook Like!" tag. This is expanded from the text node to:
If you look at the above example, "Facebook Like!" (14 bytes) is an abbreviation for HTML "worth" about 439 bytes. Also, these tags can be maintained throughout time, offering a layer of abstraction which I can't think of setting up with mid-tier technology like PHP. Furthermore, in the case of the "Twitter!" substitution you save an outoing link:
<jscript> tag is the first thing that came to my mind instead of the <script> tag, that doesn't get parsed in AJAX applications, when injected to the DOM.
No intended connotation with MS ;-) (and I hope they don't use a <jscript> tag)
If you believe it or not, writing "Facebook Like!", in a certain sense uniquely defines writing:
(That's to say, the latter is functionally dependent on the tag. There's only one non-trivial JS parameter: window.location.href)
I agree it seems a lot of code that has been substituted, but doesn't that make life easier for someone who just uses my tag? Moreover, the underlying code of Facebook may change, but the tag I'm providing will be insulated against that.
Whatever should become of this thread, just wanted to say special thanks to "Ketamire" for the support! You've obviously seen the "simplicity" in using it, which is intended from the start. On an different note, I know by now how hard it is to give support in public, where our daily news is "not exactly" doing a good job of that.
You must be a very brave man!
(just thought I have to give "full credit" on that one ;-) )