Skip to content

Commit

Permalink
Merge pull request #15 from robb/fix-rel2
Browse files Browse the repository at this point in the history
Fix rel2 having an incorrect name
  • Loading branch information
robb authored Feb 10, 2021
2 parents 46d115e + 2b60b1e commit a17c57d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_11.1.app
run: sudo xcode-select -switch /Applications/Xcode_12.app
- uses: actions/checkout@v1
- name: Build
run: swift build -v
Expand Down
2 changes: 1 addition & 1 deletion Generator/Sources/Generator/Definitions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ extension Attribute {
)

static let rel2 = Attribute(
name: "rel2",
name: "rel",
description: "Relationship between the document containing the hyperlink and the destination resource."
)

Expand Down
6 changes: 3 additions & 3 deletions Sources/HTML/Tags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6010,7 +6010,7 @@ public func li(
/// - media: Applicable media.
/// - nonce: Cryptographic nonce used in Content Security Policy checks [CSP].
/// - referrerpolicy: Referrer policy for fetches initiated by the element.
/// - rel2: Relationship between the document containing the hyperlink and the destination resource.
/// - rel: Relationship between the document containing the hyperlink and the destination resource.
/// - role: ARIA semantic role.
/// - sizes: Sizes of the icons (for `icon`).
/// - slot: The element's desired slot.
Expand Down Expand Up @@ -6050,7 +6050,7 @@ public func link(
media: String? = nil,
nonce: String? = nil,
referrerpolicy: String? = nil,
rel2: String? = nil,
rel: String? = nil,
role: String? = nil,
sizes: String? = nil,
slot: String? = nil,
Expand Down Expand Up @@ -6092,7 +6092,7 @@ public func link(
attributes["media"] = media
attributes["nonce"] = nonce
attributes["referrerpolicy"] = referrerpolicy
attributes["rel2"] = rel2
attributes["rel"] = rel
attributes["role"] = role
attributes["sizes"] = sizes
attributes["slot"] = slot
Expand Down

0 comments on commit a17c57d

Please sign in to comment.