OfficeIMO.Html.AngleSharp
3.6.0
Prefix Reserved
See the version list below for details.
dotnet add package OfficeIMO.Html.AngleSharp --version 3.6.0
NuGet\Install-Package OfficeIMO.Html.AngleSharp -Version 3.6.0
<PackageReference Include="OfficeIMO.Html.AngleSharp" Version="3.6.0" />
<PackageVersion Include="OfficeIMO.Html.AngleSharp" Version="3.6.0" />
<PackageReference Include="OfficeIMO.Html.AngleSharp" />
paket add OfficeIMO.Html.AngleSharp --version 3.6.0
#r "nuget: OfficeIMO.Html.AngleSharp, 3.6.0"
#:package OfficeIMO.Html.AngleSharp@3.6.0
#addin nuget:?package=OfficeIMO.Html.AngleSharp&version=3.6.0
#tool nuget:?package=OfficeIMO.Html.AngleSharp&version=3.6.0
OfficeIMO.Html.AngleSharp
AngleSharp-backed parsing, selectors and serialization for the owned OfficeIMO HTML document model. Parsing is inert: it does not execute scripts or fetch resources.
dotnet add package OfficeIMO.Html.AngleSharp
This includes OfficeIMO.Html.Core. Keep directly referenced OfficeIMO packages on
the same version. Install OfficeIMO.Html for resource policy, conversion, styles
and rendering; it includes this provider.
using OfficeIMO.Html.Dom;
using OfficeIMO.Html.Providers;
HtmlDocument document = AngleSharpHtmlParser.Instance.ParseDocument(
"<h1>Hello</h1>", new HtmlParseOptions());
HtmlDocument edited = document.Edit(editor => {
editor.QuerySelector("h1")!.TextContent = "Updated";
});
string html = edited.OuterHtml;
HtmlDocument table = AngleSharpHtmlParser.Instance.ParseDocument(
"<table><tbody><tr id='items'></tr></tbody></table>", new HtmlParseOptions());
HtmlDocumentFragment cells = AngleSharpHtmlParser.Instance.ParseFragment(
"<td>A</td><td>B</td>", table.QuerySelector("#items")!, new HtmlParseOptions());
The owned tree is the long-lived source of truth. The provider caches its native selector
and serializer projection weakly. When a caller still holds the native document, the bridge
preserves that document identity and can rebuild only its maps after collection. HtmlConversionDocument keeps conversion-only
parsing on the native fast path until its owned Document is requested, then allows the
duplicate source projection to be reclaimed. The existing CSS/layout engine still uses a
structural native-DOM adapter internally. This package does not claim dependency independence
or browser execution. Source and tree budgets are enforced before downstream conversion work;
parsing remains subject to the underlying parser's cooperative cancellation behavior.
AngleSharpEncodingProvider implements the owned IHtmlEncodingProvider charset
contract. It retains AngleSharp web aliases and System.Text.Encoding.CodePages;
initialization preserves the existing process-wide code-page registration. The
HTML conversion package owns byte-order-mark precedence, HTML prescanning, CSS
decoding rules and stream lifetime. This provider supplies label resolution.
Native trees are constructed before node/depth budgets can be checked. Source
length is checked first, and parser cancellation is cooperative. Query results use
owned nodes, including detached nodes. Invalid selectors throw ArgumentException.
Conversion exports the attached tree, including template content. A detached tree
is materialized only when that tree is queried or serialized; unrelated detached
trees do not affect conversion or document queries.
ParseDocument handles complete HTML documents. ParseFragment accepts an owned
context element and returns a fragment in an independent owned document. The adapter
reconstructs foreign and ancestor-form context where the retained native fragment API
does not preserve it. Table insertion modes use the native fragment path. Both paths
apply the same source, node, depth and cooperative-cancellation options.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- AngleSharp (>= 1.8.3)
- OfficeIMO.Html.Core (>= 3.6.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
-
.NETStandard 2.0
- AngleSharp (>= 1.8.3)
- OfficeIMO.Html.Core (>= 3.6.0)
- System.Text.Encoding.CodePages (>= 8.0.0)
-
net10.0
- AngleSharp (>= 1.8.3)
- OfficeIMO.Html.Core (>= 3.6.0)
-
net8.0
- AngleSharp (>= 1.8.3)
- OfficeIMO.Html.Core (>= 3.6.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OfficeIMO.Html.AngleSharp:
| Package | Downloads |
|---|---|
|
OfficeIMO.Html
HTML parsing, resource policy, CSS layout, diagnostics, and provider-neutral render scenes for OfficeIMO converters. |
GitHub repositories
This package is not used by any popular GitHub repositories.