diff --git a/Sources/HTMLKit/Abstraction/Elements/ObjectElements.swift b/Sources/HTMLKit/Abstraction/Elements/ObjectElements.swift index 69161000..11a0eda3 100644 --- a/Sources/HTMLKit/Abstraction/Elements/ObjectElements.swift +++ b/Sources/HTMLKit/Abstraction/Elements/ObjectElements.swift @@ -29,8 +29,10 @@ public struct Parameter: EmptyNode, ObjectElement { internal var attributes: OrderedDictionary? + @available(*, deprecated, message: "The parameter element is no longer part of the web standards. Use the data attribute of the object element instead.") public init() {} + @available(*, deprecated, message: "The parameter element is no longer part of the web standards. Use the data attribute of the object element instead.") internal init(attributes: OrderedDictionary?) { self.attributes = attributes } diff --git a/Tests/HTMLKitTests/ElementTests.swift b/Tests/HTMLKitTests/ElementTests.swift index c3d4ab2f..d7c2e4e6 100644 --- a/Tests/HTMLKitTests/ElementTests.swift +++ b/Tests/HTMLKitTests/ElementTests.swift @@ -1072,21 +1072,6 @@ final class ElementTests: XCTestCase { ) } - func testParameterElement() throws { - - let view = TestView { - Parameter() - Param() - } - - XCTAssertEqual(try renderer.render(view: view), - """ - \ - - """ - ) - } - func testVideoElement() throws { let view = TestView {