Skip to content

Commit a17c57d

Browse files
authored
Merge pull request #15 from robb/fix-rel2
Fix rel2 having an incorrect name
2 parents 46d115e + 2b60b1e commit a17c57d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/swift.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Select Xcode
11-
run: sudo xcode-select -switch /Applications/Xcode_11.1.app
11+
run: sudo xcode-select -switch /Applications/Xcode_12.app
1212
- uses: actions/checkout@v1
1313
- name: Build
1414
run: swift build -v

Generator/Sources/Generator/Definitions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ extension Attribute {
623623
)
624624

625625
static let rel2 = Attribute(
626-
name: "rel2",
626+
name: "rel",
627627
description: "Relationship between the document containing the hyperlink and the destination resource."
628628
)
629629

Sources/HTML/Tags.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6010,7 +6010,7 @@ public func li(
60106010
/// - media: Applicable media.
60116011
/// - nonce: Cryptographic nonce used in Content Security Policy checks [CSP].
60126012
/// - referrerpolicy: Referrer policy for fetches initiated by the element.
6013-
/// - rel2: Relationship between the document containing the hyperlink and the destination resource.
6013+
/// - rel: Relationship between the document containing the hyperlink and the destination resource.
60146014
/// - role: ARIA semantic role.
60156015
/// - sizes: Sizes of the icons (for `icon`).
60166016
/// - slot: The element's desired slot.
@@ -6050,7 +6050,7 @@ public func link(
60506050
media: String? = nil,
60516051
nonce: String? = nil,
60526052
referrerpolicy: String? = nil,
6053-
rel2: String? = nil,
6053+
rel: String? = nil,
60546054
role: String? = nil,
60556055
sizes: String? = nil,
60566056
slot: String? = nil,
@@ -6092,7 +6092,7 @@ public func link(
60926092
attributes["media"] = media
60936093
attributes["nonce"] = nonce
60946094
attributes["referrerpolicy"] = referrerpolicy
6095-
attributes["rel2"] = rel2
6095+
attributes["rel"] = rel
60966096
attributes["role"] = role
60976097
attributes["sizes"] = sizes
60986098
attributes["slot"] = slot

0 commit comments

Comments
 (0)