hexonaut / haxe-dom

A cross-platform implementation of the DOM. Built to reduce duplicate code across server and client.
MIT License
46 stars 4 forks source link

Example problem: HTMLDetailsElement is not defined #2

Closed cambiata closed 10 years ago

cambiata commented 10 years ago

Hi Sam!

When running the "Full example", I get an "Uncaught ReferenceError: HTMLDetailsElement is not defined" error, both in Chrome and FF (on Windows). I guess that this is related to what you write: "You may need to shiv missing elements depending on your browser."

Could you give a clue how to solve this?

/ Jonas

hexonaut commented 10 years ago

Yeah I got that error with Chrome too. I've updated the starting example to take care of that by adding this line:

head.add(EScript.create().addText("HTMLDetailsElement = HTMLElement;"));

Should work now.

cambiata commented 10 years ago

Thanks!