[ 
https://issues.apache.org/jira/browse/FLEX-26412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-26412:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> TLF 2.0: Html Importer fails to recognize <ol> as ordered list.
> ---------------------------------------------------------------
>
>                 Key: FLEX-26412
>                 URL: https://issues.apache.org/jira/browse/FLEX-26412
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Adobe Flex SDK Previous
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Other (specify version)
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easyfix, easytest
>
> Steps to reproduce:
>     Using the Jan 07 2011 build of textLayout.swc (included in the test case 
> project):
>     var markup:XML = <ol><li>First Item</li><li>Second Item</li></ol>;
>     var flow:TextFlow = TextConverter.importToFlow(markup, 
> TextConverter.TEXT_FIELD_HTML_FORMAT);
>     trace(flow.mxmlChildren[0].listStyleType);                        
>     flow.flowComposer.addController(new ContainerController(this, NaN, NaN));
>     flow.flowComposer.updateAllControllers();
>  
>  Actual Results:
>     The list is parsed and displayed with list.listStyleType == 
> ListStyleType.DISC.  Console output is "disc"
>  
>  Expected Results:
>     The list is parsed and displayed with list.listStyleType == 
> ListStyleType.DECIMAL.  Console output is "decimal"
>  
>  Workaround (if any):
>      TextFieldHtmlImporter.createListFromXML is checking if the element name 
> is "OL" without ensuring that the name was all caps before. 
>     Changing line 395 in revision 349 of TextFieldHtmlImporter.as from:
>         var name:String = xmlToParse ? xmlToParse.name().localName : null;
>     to:
>         var name:String = xmlToParse ? 
> xmlToParse.name().localName.toUpperCase() : null;
>     corrects the issue.
>     Additionally, using all-caps element names gets around this bug.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to