[Flashcoders] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Greg Ligierko
I noticed a difference in how Flash CS3 and simple HTML page parses
b and i tags.

For example:
var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T;
txt.htmlText = test2;

Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

(it completely ignores the closing /B tag).

While using the same string, pure HTML produces (as we could expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

(clearly considers closing bold /B).


Conclusion - Flash allows nesting bi.../i/b, but does not
allow intersecting two style formatting, like b...i.../b../i
(I'm not sure if intersection is an appropriate word in this case).

Am I right here ?

g




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Andrei Thomaz
intersection is not correct HTML, right?



On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com wrote:

 I noticed a difference in how Flash CS3 and simple HTML page parses
 b and i tags.

 For example:
 var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R S T;
 txt.htmlText = test2;

 Flash produces: A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - bold+italic
P Q R S T - bold

 (it completely ignores the closing /B tag).

 While using the same string, pure HTML produces (as we could expect):
A B C D   - regular font
E F G - bold
H I J K   - bold+italic
L M N O   - italic
P Q R S T - regular font

 (clearly considers closing bold /B).


 Conclusion - Flash allows nesting bi.../i/b, but does not
 allow intersecting two style formatting, like b...i.../b../i
 (I'm not sure if intersection is an appropriate word in this case).

 Am I right here ?

 g




 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Intersecting (or ovelapping) b and i in html text fields

2009-11-17 Thread Karl DeSaulniers

Should be like this..

var test2 = A B C D B E F G I H I J K /i/B iL M N O / 
I P Q R S T;


if you want these results.


   A B C D   - regular font
   E F G - bold
   H I J K   - bold+italic
   L M N O   - italic
   P Q R S T - regular font


Karl

On Nov 17, 2009, at 6:30 AM, Andrei Thomaz wrote:


intersection is not correct HTML, right?



On Tue, Nov 17, 2009 at 10:03 AM, Greg Ligierko gre...@l-d5.com  
wrote:



I noticed a difference in how Flash CS3 and simple HTML page parses
b and i tags.

For example:
var test2 = A B C D B E F G I H I J K /B L M N O /I P Q R  
S T;

txt.htmlText = test2;

Flash produces: A B C D   - regular font
   E F G - bold
   H I J K   - bold+italic
   L M N O   - bold+italic
   P Q R S T - bold

(it completely ignores the closing /B tag).

While using the same string, pure HTML produces (as we could expect):
   A B C D   - regular font
   E F G - bold
   H I J K   - bold+italic
   L M N O   - italic
   P Q R S T - regular font

(clearly considers closing bold /B).


Conclusion - Flash allows nesting bi.../i/b, but does not
allow intersecting two style formatting, like b...i.../b../i
(I'm not sure if intersection is an appropriate word in this case).

Am I right here ?

g




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders