[whatwg] Anchor target-attribute extension to enable dom targeting
gmarzin at club-internet.fr
Sun Apr 8 11:17:55 PDT 2007
This is my first post in whatwg mailing list for technical discussion of
WHAT Working Group specifications.
Please pardon my english, I'm french.
I have a suggestion to submit :
Look at this piece of code :
<!-- look at the sharp in the target property -->
<a href="inc/foo.frg" target="#main_area">
Click here to dynamicaly load a text/html piece of code into
the "main_area" identified dom node
<!-- somewhere in the same document -->
The content of inc/foo.frg in not a complete html page but only a well
formed xhtml piece of code like :
this content is dynamically loaded into a dom node, like ajax,
but with a html extended syntax of the target property.
- With this extension of the target attribute, it might be possible to
- Second: developers don't need to know anything about
- Third avantage: with this syntaxe, a robot can parse the href content
to indexe it. Remember that html purist don't like ajax because it use
It is possible to do the same with the target attribute of <form>
So the result of submission will appear in a dom element and not cover
the whole page.
Here is an example :
For french readers, a demo :
More information about the whatwg