AngleSharp / AngleSharp.Js

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

Serialize DocumentReadyState #87

Closed Sebbs128 closed 6 months ago

Sebbs128 commented 1 year 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

Serializes the DocumentReadyState enum for document.readyState based on the DomNameAttribute.OfficialName value if available. Serializing other enum types has been left open, as too many tests/intended functionality breaks otherwise.

The serialized values are only available when AngleSharp v1.0.2 or greater is installed, otherwise previous behaviour is preserved.

Addresses #86

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.