[ 
https://issues.apache.org/jira/browse/FLEX-35203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15760648#comment-15760648
 ] 

Pan Li edited comment on FLEX-35203 at 12/19/16 9:23 AM:
---------------------------------------------------------

I thought I had included entire console output, to be more specific:
test code:
{code}
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                                xmlns:js="library://ns.apache.org/flexjs/basic" 
                                xmlns:local="*"
                                pageTitle="HelloWorld" 
xmlns:ns="library://ns.apache.org/flexjs/html5">
                           
        <fx:Declarations>
        </fx:Declarations>
        
        <fx:Script>
                <![CDATA[
                        var x : XML = new XML();
                        
                ]]>
        </fx:Script>
        
        <js:valuesImpl>
                <js:SimpleCSSValuesImpl />
        </js:valuesImpl>
        
        <js:initialView>
                <js:View>
                        <js:Container width="100%" height="100%" >
                                <js:Label id="lbl" text="Hello World" 
width="200" />
                        </js:Container> 
                </js:View>
        </js:initialView>
        
 </js:Application>
{code}

Test configuration : 
FlexJS 0.8.0 FR23.0 AIR23.0 (nightly build) on Mac 10.11:

Result:
empty page in browser

Console output:
Chrome:
{code}
Test1.js:59 Uncaught ReferenceError: XML is not defined
{code}

Safari:
{code}
ReferenceError: Can't find variable: XML
// following part are not copiable in safari, I typed manually:
Test1 -- Test1.js: 59
global code -- index.html: 129
{code}

Firefox:
{code}
ReferenceError: XML is not defined[Learn More]  Test1.js:59:3
        Test1 file:///Users/lipan/Downloads/Test1/bin/js-debug/Test1.js:59:3
        <anonymous> 
file:///Users/lipan/Downloads/Test1/bin/js-debug/index.html:129:3
{code}

Auto generated javascript:
{code}
Test1 = function() {
    Test1.base(this, 'constructor');

    this.x = new XML();
    /**
       * @private
       * @type {org.apache.flex.core.SimpleCSSValuesImpl}
       */
    this.$ID0_;
{code}
full file:
!Test1.js!
The problem was reproduced using 0.7 binary release (FlexJS 0.7.0 FR20.0 
AIR20.0) with same result, it was reproduced on the other computers we have.



was (Author: [email protected]):
I thought I had included entire console output, to be more specific:
test code:
{code}
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                                xmlns:js="library://ns.apache.org/flexjs/basic" 
                                xmlns:local="*"
                                pageTitle="HelloWorld" 
xmlns:ns="library://ns.apache.org/flexjs/html5">
                           
        <fx:Declarations>
        </fx:Declarations>
        
        <fx:Script>
                <![CDATA[
                        var x : XML = new XML();
                        
                ]]>
        </fx:Script>
        
        <js:valuesImpl>
                <js:SimpleCSSValuesImpl />
        </js:valuesImpl>
        
        <js:initialView>
                <js:View>
                        <js:Container width="100%" height="100%" >
                                <js:Label id="lbl" text="Hello World" 
width="200" />
                        </js:Container> 
                </js:View>
        </js:initialView>
        
 </js:Application>
{code}

Test configuration : 
FlexJS 0.8.0 FR23.0 AIR23.0 (nightly build) on Mac 10.11:

Result:
empty page in browser

Console output:
Chrome:
{code}
Test1.js:59 Uncaught ReferenceError: XML is not defined
{code}

Safari:
{code}
ReferenceError: Can't find variable: XML
// following part are not copiable in safari, I typed manually:
Test1 -- Test1.js: 59
global code -- index.html: 129
{code}

Firefox:
{code}
ReferenceError: XML is not defined[Learn More]  Test1.js:59:3
        Test1 file:///Users/lipan/Downloads/Test1/bin/js-debug/Test1.js:59:3
        <anonymous> 
file:///Users/lipan/Downloads/Test1/bin/js-debug/index.html:129:3
{code}

Auto generated javascript:
{code}
Test1 = function() {
    Test1.base(this, 'constructor');

    this.x = new XML();
    /**
       * @private
       * @type {org.apache.flex.core.SimpleCSSValuesImpl}
       */
    this.$ID0_;
{code}
full file:

The problem was reproduced using 0.7 binary release (FlexJS 0.7.0 FR20.0 
AIR20.0) with same result, it was reproduced on the other computers we have.


> XML() class is broken javascript mode in 0.8 dev
> ------------------------------------------------
>
>                 Key: FLEX-35203
>                 URL: https://issues.apache.org/jira/browse/FLEX-35203
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
>            Reporter: Pan Li
>            Assignee: Alex Harui
>             Fix For: Apache FlexJS 0.8.0
>
>         Attachments: Test1.js
>
>
> {code}
>       <fx:Script>
>               <![CDATA[
>               
>               var foo : XML = new XML();
>                       
>               ]]>
>       </fx:Script>
> {code}
> above code result in runtime javascript error
>  Uncaught ReferenceError: XML is not defined
> the same code works in swf mode



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to