|Re: how to extend HTML tags/attributes? [message #218020 is a reply to message #218013]
||Tue, 22 July 2008 21:17
| Nitin Dahyabhai
Registered: July 2009
> For XHTML I agree, but HTML is looser and does "allow" it.
The browsers may allow it, but that doesn't make it valid.
In any case, we do have an _internal_ extension point,
org.eclipse.wst.xml.core.modelQueryExtensions, making use of
that could be used to add new definitions for what's valid. This
makes use of a number of _internal_ interfaces, however, and is
unsupported beyond its use in WTP, so you'd be on your own. And be
aware that it's easy to torpedo editor performance by misusing it.
Eclipse WTP Source Editing
Eclipse WTP, IBM
|Re: how to extend HTML tags/attributes? [message #218068 is a reply to message #218032]
||Wed, 23 July 2008 14:47
Originally posted by: nowhere.a.com|
Philippe Marschall wrote :
> Wojtek wrote:
>> Nitin Dahyabhai wrote :
>>> Wojtek wrote:
>>>> For XHTML I agree, but HTML is looser and does "allow" it.
>>> The browsers may allow it, but that doesn't make it valid.
>> Which is unfortunate as it can be useful. I use it inside a <span> to mark
>> text for special processing. Well, two custom attributes.
>> on a button. The button surrounds the selected text with a <span> which
>> contains a custom attribute.
>> On the server side I parse for the span/attributes, then do the processing
>> on the text. I then save the original and the processed text into a DB.
>> When showing the two texts, the text inside the <span> is in a different
>> CSS class. So the user can see the selected text plus what the processing
>> Um, somewhat terse, but I have an NDA...
>> The alternative would be to subvert and mis-use some standard attributes.
> Why can't you just use a semantic CSS class?
There is more there than just UI. The text between the <span> and
</span> is replaced.
Powered by FUDForum
. Page generated in 0.04262 seconds