Skip to content

Commit b03d825

Browse files
authored
docs: fix some typos (#145)
Signed-off-by: John E <jeis4wpi@outlook.com>
1 parent 440e699 commit b03d825

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ One common example is `<li>`, which enables this usage pattern:
235235
```
236236

237237
The reason why this is not ambiguous is that `<li>`cannot be nested inside
238-
another `<li>` so whe the second sibling is encountered, it's possible to always
238+
another `<li>` so when the second sibling is encountered, it's possible to always
239239
correctly implicitly close the first `<li>`.
240240

241241
SuperHTML breaks compatibility with the HTML spec in this regard for one main reason:
@@ -252,7 +252,7 @@ Consider the following snippet:
252252
If SuperHTML were to follow the HTML spec it would have to consider this valid
253253
HTML that represents two bullet points, the second of which contains no content.
254254

255-
Unfortunately it's also very likely (acutally even more so) that the user just
255+
Unfortunately it's also very likely (actually even more so) that the user just
256256
forgot the closing slash in the second tag.
257257

258258
For this reason SuperHTML does not allow closing tags implicitly even if the

src/cli/lsp.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const logic = @import("lsp/logic.zig");
1414
const log = std.log.scoped(.superhtml_lsp);
1515

1616
pub fn run(io: Io, gpa: Allocator, args: []const []const u8) !noreturn {
17-
log.debug("SuperHTML Langauge Server Started!", .{});
17+
log.debug("SuperHTML Language Server Started!", .{});
1818
for (args) |arg| log.debug("arg: {s}", .{arg});
1919

2020
const cmd = Command.parse(args);
@@ -697,7 +697,7 @@ fn fatalHelp() noreturn {
697697
const msg =
698698
\\Usage: superhtml lsp [--syntax-only]
699699
\\
700-
\\The --syntax-only flag disables HTML element and attribute validation.
700+
\\The --syntax-only flag disables HTML element and attribute validation.
701701
;
702702

703703
std.debug.print(msg, .{});

src/html/elements/div.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub fn validateContent(
120120
.tag = .{
121121
.invalid_nesting = .{
122122
.span = parent_span,
123-
.reason = "<div> under <dl> only accepts <dt>, <dd>, <srcipt> or <template>",
123+
.reason = "<div> under <dl> only accepts <dt>, <dd>, <script> or <template>",
124124
},
125125
},
126126
.main_location = child.span(src),

src/html/elements/form.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub const attributes: AttributeSet = .init(&.{
103103
},
104104
}),
105105
},
106-
.desc = "Only accepts 'UTF-8' as a value, no reason to specify this atttribute.",
106+
.desc = "Only accepts 'UTF-8' as a value, no reason to specify this attribute.",
107107
},
108108
},
109109
});

src/html/elements/input.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,12 @@ fn validateAccept(value: []const u8) ?Attribute.Rule.ValueRejection {
814814
// 4. If type is the empty string or does not solely contain HTTP token code
815815
// points, then return failure.
816816
if (mime_type.len == 0) return .{
817-
.reason = "emtpy MIME type",
817+
.reason = "empty MIME type",
818818
.offset = @intCast(slash_idx),
819819
};
820820

821821
if (std.mem.trim(u8, value[slash_idx + 1 ..], &std.ascii.whitespace).len == 0) return .{
822-
.reason = "emtpy MIME subtype",
822+
.reason = "empty MIME subtype",
823823
.offset = @intCast(slash_idx + 1),
824824
};
825825

0 commit comments

Comments
 (0)