6.0.0 • Published 2 years ago
europa-dom-web v6.0.0
europa-dom-web
A Europa DOM wrapper for a web browser.
Install
Install using your preferred package manager. For example;
$ npm install --save europa-dom-web
You will most likely never need to depend on europa-dom-web
directly. Instead, you will probably want to install the
europa package in order to use Europa within a web
browser.
API
import { Dom, Environment } from 'europa-core';
import { WebDom, WebDomRoot } from 'europa-dom-web';
const _dom = Symbol();
class ExampleEnvironment implements Environment<Node, Element> {
private readonly [_dom] = new WebDom();
getDefaultBaseUri(): string { /* ... */ }
getDefaultEndOfLineCharacter(): string { /* ... */ }
getDom(): Dom<Node, Element, WebDomRoot> {
return this[_dom];
}
resolveUrl(baseUri: string, url: string): string { /* ... */ }
}
Bugs
If you have any problems with this Europa environment or would like to see changes currently in development you can do so here.
Contributors
If you want to contribute, you're a legend! Information on how you can do so can be found in CONTRIBUTING.md. We want your suggestions and pull requests!
A list of Europa contributors can be found in AUTHORS.md.
License
Copyright © 2022 neocotic
See LICENSE.md for more information on our MIT license.
6.0.0
2 years ago