Skip to content

Dart's DOM facade and innerHtml #789

@pkozlowski-opensource

Description

@pkozlowski-opensource

There is a wired thing going on with Dart's DOM facade and the innerHtml property:

  • DOM(hasProperty, 'innerHtml') => false
  • DOM(hasProperty, 'innerHTML') => true

but:

  • reflector.setter('innerHtml') => exists
  • reflector.setter('innerHTML') => null

which basically means that we can't use the same name to test for a property name and lookup a setter in Dart....

I'm going to special-case this property for now to unblock #619 but if any person more familiar with Dart could give me a hand with this one, it would be awesome.

https://api.dartlang.org/apidocs/channels/be/dartdoc-viewer/dart:html.DocumentFragment#id_innerHtml

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