Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/concise-attr-group-without-name.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/concise-semicolon-line.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/concise-tag-name-hyphen.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/open-tag-ended-before-name.md

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# htmljs-parser

## 5.19.0

### Minor Changes

- [#261](https://github.com/marko-js/htmljs-parser/pull/261) [`1773778`](https://github.com/marko-js/htmljs-parser/commit/1773778bf73999acf65046949c5f1d1634168ba7) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Read an attribute group (`[`) at the start of a concise line as following an empty tag name, as `.class` and `|params|` are, rather than reading its first attribute as the tag name.

- [#261](https://github.com/marko-js/htmljs-parser/pull/261) [`1773778`](https://github.com/marko-js/htmljs-parser/commit/1773778bf73999acf65046949c5f1d1634168ba7) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Ignore a concise line that starts with `;`, which opened a tag with no name. As after a tag's `;`, only comments may follow it.

- [#261](https://github.com/marko-js/htmljs-parser/pull/261) [`1773778`](https://github.com/marko-js/htmljs-parser/commit/1773778bf73999acf65046949c5f1d1634168ba7) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Read a concise line starting with `-` and a word character (eg `-if`) as a tag whose name starts with `-`, as `<-if>` already is in HTML mode. A single `-` followed by anything else is still an error, and so is any single `-` within a tag that only allows text.

- [#261](https://github.com/marko-js/htmljs-parser/pull/261) [`1773778`](https://github.com/marko-js/htmljs-parser/commit/1773778bf73999acf65046949c5f1d1634168ba7) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Name an open tag that ends before its name (eg a concise line of just `,`, or `<,>`) empty, so a tag never ends without `onOpenTagName`; the compiler and editor tooling crashed on these, and `<,>` crashed the parser at the end of the template.

## 5.18.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "htmljs-parser",
"version": "5.18.0",
"version": "5.19.0",
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
"keywords": [
"HTML",
Expand Down