AngleSharp / AngleSharp.Js

:angel: Extends AngleSharp with a .NET-based JavaScript engine.
https://anglesharp.github.io
MIT License
103 stars 22 forks source link

Added Image constructor support #94

Closed tomvanenckevort closed 5 months ago

tomvanenckevort commented 5 months ago

Types of Changes

Prerequisites

Please make sure you can check the following two boxes:

Contribution Type

What types of changes does your code introduce? Put an x in all the boxes that apply:

Description

This PR adds support for the Image constructor as described here.

Since this constructor does not directly link to the HTMLImageElement constructor, I have added a new "constructor function" way of adding constructors to the Window object: