Thanks for explanation of manual flush

I have been partially sucessful however there still seems to be another 
problem when removing the text selection for a particular element for a 
second (subsequent) time (although it may be my script)

Currently I'm using element.setAttribute('style','-moz-user-select:text') to 
enable text and
element.setAttribute('style','-moz-user-select:-moz-none') to disable it

Rather than explicitly setting an element's attribute to -moz-none, I 
presume I can simply remove the -moz-user-select property and allow the 
default  -moz-user-select style for the table element  to be  inherited?



"Mats Palmgren" <[email protected]> wrote in message 
news:[email protected]...
> On 10/13/2010 12:45 PM, rvj wrote:
>> thanks .. although I wasnt exactly sure what you meant by a  manual flush
>
> Adding "document.documentElement.offsetHeight;" forces pending style
> changes to be executed internally.  Adding it to your example (after
> setting the class attribute) appears to make it work as expected.
> This is a bug in Gecko.  Please file a bug report at
> https://bugzilla.mozilla.org/ unless it's filed already.
> (under Product:Core, Component:Selection)
> Thanks.
>
> /Mats
> 


_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to