From 2200adbdfba1b476d25a7234b68d824c0ebf8454 Mon Sep 17 00:00:00 2001 From: Alexander Zank Date: Fri, 20 Mar 2020 11:40:14 +0100 Subject: [PATCH 1/2] Add support for the `` tag and its `data: URL` attribute with a new `HTMLLinkableDataContext`. Include `testObject()` and pass successfully. --- Sources/Plot/API/HTML.swift | 5 +++++ Sources/Plot/API/HTMLAttributes.swift | 16 ++++++++++++++++ Sources/Plot/API/HTMLElements.swift | 6 ++++++ Tests/PlotTests/HTMLTests.swift | 16 +++++++++++++++- 4 files changed, 42 insertions(+), 1 deletion(-) diff --git a/Sources/Plot/API/HTML.swift b/Sources/Plot/API/HTML.swift index 86561d0..1813713 100644 --- a/Sources/Plot/API/HTML.swift +++ b/Sources/Plot/API/HTML.swift @@ -83,6 +83,8 @@ public extension HTML { enum ListContext: HTMLStylableContext {} /// The context within an HTML `` element. enum MetaContext: HTMLNamableContext {} + /// The contect within an HTM `` element. + enum ObjectContext: HTMLDimensionContext, HTMLLinkableDataContext, HTMLTypeContext {} /// The context within an HTML `