Skip to content

HTML API inconsistencies #410

@JbIPS

Description

@JbIPS

Hi,
I tried to compile my Haxe/JS code with Cocktail and got some errors in return.

  1. js.html.Element.classList in Haxe return a DOMTokenList, but in Cocktail, this is an Array, so no add() method. Is it OK to create a class DOMTokenList in Cocktail that fill the gap?
  2. Element has no field getBoundingClientRect. That sounds like a pain in the neck. Is there another way to get Element coordinates in Cocktail?

Thanks,

EDIT: I'm using GitHub HEAD version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions