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?
Sure introducing custom XML is nice but can you specify replacing arbitrarily complex HTML? With arbitrarily complex HTML I mean blocks ot HTML that may have functionally dependent arguments in JavaScript for example.
My prime example is the "Facebook Like!" tag. This is expanded from the text node to:
(There are two custom bits for handling JS - the "jscript" tag I introduced, which is parsed client side even when using AJAX, in contradiction to normal <script> tags; and %js% + %sj% that enclose JavaScript arguments and return the respective string back.
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:
...which keeps PageRank on the site! What's the point of throwing PR at a PR 9 site??
So these "new HTML tags" are good value in my opinion. The challenge is now to identify and support more of them to increase the added value of the tool and making it worthwhile to include...
What do you think of other features like the "Google Analytics Substitution"?
“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
<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.
Well it's not exactly "new" since it seems you still need to put dividers around the text. Nevertheless it looks awesome! Expanding it's word bank will definitely help others.
What you need is some sort of server side pre-processor. And instead of using new tags you could use processing instructions, <? ... ?>. I'd bet that you could do a lot with something like that.
“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
@Ketamire: Glad you think that this will help others - so do I :-)
@Spufi: If scripting is disabled, a redirect is issued and the "new HTML tags" are parsed nevertheless. Only JS is not processed then...
@Charles: What kind of server side pre-processor are you thinking about? Anything specific in mind?
@WyCnet: It's not supposed to be for disguising activities. There is supposed to be the possibility to hide boring code or links from search-engines, though...
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 ;-) )
Bookmarks