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
7 changes: 0 additions & 7 deletions .changeset/tidy-carrots-repair.md

This file was deleted.

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

## 5.12.1

### Patch Changes

- [#227](https://github.com/marko-js/htmljs-parser/pull/227) [`a576b5c`](https://github.com/marko-js/htmljs-parser/commit/a576b5c86e1e7fe8a366784915361f50a9bdb381) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Fix `isValidAttrValue` (and `isValidStatement` / `isValidScriptlet`) reporting `enclosed` for a value that ends in a trailing `//` line comment (e.g. `"hello" // note`).

A line comment with no terminating newline consumes everything that would follow it on the line, so such a value is not safe to emit verbatim. It is now classified as `valid` (needs wrapping when placed inline), matching the existing behavior for an unguarded trailing newline. A comment guarded by a group (e.g. `("hello" // c\n)`) or a self-closing block comment (`"hello" /* c */`) still classifies as `enclosed`.

## 5.12.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.12.0",
"version": "5.12.1",
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
"keywords": [
"HTML",
Expand Down