[Mozile] INFORMATION ABOUT MOZILE -moz-user-modify

James A. Overton james at overton.ca
Fri Jul 28 12:14:53 EDT 2006


Hi Luca,
	The -moz-user-modify attribute is used by Mozilla to control  
properties of form elements like text fields. We simply use it as a  
marker for editable elements, since Mozilla is already parsing that  
CSS declaration. (Note that Mozile 0.8 does not make use of -moz-user- 
modify, but all earlier versions do.)
	User input is handled by listening for DOM keyboard events. XBL  
bindings can also be used to capture events (as they are in Mozile  
0.7). Changes to the document are made using standard DOM methods.  
The best documentation is probably the Mozile 0.8 editing summary  
here: http://mozile.mozdev.org/0.8/doc/html/ch02s04.html
	I'm sure you have more specific questions. Without knowing a bit  
more about what you need, I can't point out a particular fragment of  
code for you. You can reply to this email, or come talk to me on IRC  
at irc://irc.freenode.net/#mozile
	Happy to help,

James


On 2006-Jul-28, at 10:40 AM, Luca Cervone wrote:

> Hi,
> I'm  a student of computer science at the university of bologna 
> (Italy).
> For my thesis i'm working on a WYSIWYG editor and i need a fragment of
> mozile's code.
> But there is something that i don't understend.
>
> For example:
> Suppose I have a node whit the -moz-user-modify attribute.
> What is the mechanism that make the aforesaid node accepts the  
> input of
> the user?
> In particular what is the fragment of code that do it?
>
> Sorry for my english...
> Thanks for any answer.
>
> Luca Cervone
>
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile



More information about the Mozile mailing list