Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation in PHP, bug when 2x the same image #59

Open
lexoyo opened this issue Aug 27, 2012 · 3 comments
Open

Compilation in PHP, bug when 2x the same image #59

lexoyo opened this issue Aug 27, 2012 · 3 comments
Assignees

Comments

@lexoyo
Copy link
Member

lexoyo commented Aug 27, 2012

In php, when I set the body of my document to this it behaves correctly

<img src="header.jpeg" />

But when I set the body to this, it crashes

<img src="header.jpeg" />
<img src="header.jpeg" />

To this it behaves correctly again

<img src="header.jpeg" />
<xxximg src="header.jpeg" />

And to this it also behaves correctly

<img src="header.jpeg" /> <img src="xxxheader.jpeg" />
@ghost ghost assigned yanhick Aug 27, 2012
@lexoyo
Copy link
Member Author

lexoyo commented Aug 27, 2012

here is my test case:

build file

-php bin/test.php
-cp ../SLPlayer/src/
-cp ../Cocktail/src/
--remap js:cocktail
-main Main
--macro org.slplayer.core.Builder.create('index.html')
-D noAutoStart
-D stopOnError

Main file

package ;

import js.Lib;
import js.Dom;

class Main {
static public function main() {
Lib.document.body.innerHTML = '<img src="xheader.jpeg" /><img src="header.jpeg" />';
trace(Lib.document.body.innerHTML);
}
}

HTML file

<html>
<head>
</head>
<body>
test
</body>
</html>

@yanhick
Copy link
Member

yanhick commented Aug 27, 2012

Most of those bugs will probably come from Cocktail, we should set aside time in the roadmap to actually develop/debug server targets, for now they are just a side-effect of Cocktail's architecture.

@lexoyo
Copy link
Member Author

lexoyo commented Aug 29, 2012

Ok, so we leave this open and wait right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants