html5 0.1.7

HTML library for Dart / DDC (polymerize)

This library is an HTML library generated by html_wrapper_generator starting from webidl files (stolen from the firefox project and then adapted).

It leverages the @JS interop Dart layer and aims to completely replace the (at the moment) out dated dart:html library.

As a separate package from the SDK this library has the main advantage to be updated more frequently.

Notably this library adds support to latest standards:

  • WebComponents v1
  • ShadowDom

Demo project

See here for a demo project using polymerize and this library.

v0.1.7

  • added MessageEvent and onMessage EventStreamProvider.
  • moved support for http in a different package
  • added Console
  • added support for URL, ProgressEvent, DragEvent, FileSystem

v0.1.6

  • added FileReader
  • added support for http (v0.12-dev)

v0.1.5

  • added DocumentOrShadowRoot
    • WARN : DocumentOrShadowRoot is not implemented in ShadyDOM (=> Firefox, etc.) see here
  • added some more utils, some copied from dart:html, notably:
    • key codes
    • a simplified version of EventStreamProvider
    • some event stream providers

v0.1.4

  • better support for HttpRequest

v0.1.3

  • added service workers API

v0.1.2+1

  • added missing KeyboardEvent (!!)

v0.1.1

  • adding HTMLSlotElement and Sloatable from https://html.spec.whatwg.org/multipage/scripting.html#htmlslotelement

v0.1.0

  • working with pub+ddc dart 1.24

v0.0.7

  • fixed an issue being too aggressive removing dart._extensionType marker

v0.0.6

  • support for latest polymerize (^0.8.1)

v0.0.5

  • Changed module name convention

v0.0.3

  • added factory
  • switched to abstract classes with implements
  • added XMLHttpRequest
  • added Promise and asFuture

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  html5: "^0.1.7"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support 'pub get'. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:html5/html.dart';
import 'package:html5/html5_support.dart';
import 'package:html5/html_addendum.dart';
import 'package:html5/html_gen.dart';

About

HTML wrapper library for DDC and JS

Author

Email vittorio.ballestra@gmail.com Vittorio Ballestra

Homepage

github.com/dam0vm3nt/html

Documentation

www.dartdocs.org/documentation/html5/0.1.7/

Source code (hyperlinked)

www.crossdart.info/p/html5/0.1.7/

Uploader

vittorio.ballestra@drafintech.it

Published

Jul 15, 2017

Share