htmljs-parser 5.1.2 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2099,8 +2099,8 @@ var JS_COMMENT_LINE = {
|
|
|
2099
2099
|
},
|
|
2100
2100
|
char(code) {
|
|
2101
2101
|
var _a;
|
|
2102
|
-
if (!this.isConcise && code === 60 /* OPEN_ANGLE_BRACKET */ && ((_a = this.activeTag) == null ? void 0 : _a.type) === 1 /* text */) {
|
|
2103
|
-
|
|
2102
|
+
if (!this.isConcise && code === 60 /* OPEN_ANGLE_BRACKET */ && ((_a = this.activeTag) == null ? void 0 : _a.type) === 1 /* text */ && states_exports.checkForClosingTag(this)) {
|
|
2103
|
+
this.exitState();
|
|
2104
2104
|
}
|
|
2105
2105
|
},
|
|
2106
2106
|
eol() {
|
|
@@ -2132,7 +2132,7 @@ var PARSED_TEXT_CONTENT = {
|
|
|
2132
2132
|
char(code) {
|
|
2133
2133
|
switch (code) {
|
|
2134
2134
|
case 60 /* OPEN_ANGLE_BRACKET */:
|
|
2135
|
-
if (this.isConcise || !
|
|
2135
|
+
if (this.isConcise || !states_exports.checkForClosingTag(this)) {
|
|
2136
2136
|
this.startText();
|
|
2137
2137
|
}
|
|
2138
2138
|
break;
|
package/dist/index.mjs
CHANGED
|
@@ -2074,8 +2074,8 @@ var JS_COMMENT_LINE = {
|
|
|
2074
2074
|
},
|
|
2075
2075
|
char(code) {
|
|
2076
2076
|
var _a;
|
|
2077
|
-
if (!this.isConcise && code === 60 /* OPEN_ANGLE_BRACKET */ && ((_a = this.activeTag) == null ? void 0 : _a.type) === 1 /* text */) {
|
|
2078
|
-
|
|
2077
|
+
if (!this.isConcise && code === 60 /* OPEN_ANGLE_BRACKET */ && ((_a = this.activeTag) == null ? void 0 : _a.type) === 1 /* text */ && states_exports.checkForClosingTag(this)) {
|
|
2078
|
+
this.exitState();
|
|
2079
2079
|
}
|
|
2080
2080
|
},
|
|
2081
2081
|
eol() {
|
|
@@ -2107,7 +2107,7 @@ var PARSED_TEXT_CONTENT = {
|
|
|
2107
2107
|
char(code) {
|
|
2108
2108
|
switch (code) {
|
|
2109
2109
|
case 60 /* OPEN_ANGLE_BRACKET */:
|
|
2110
|
-
if (this.isConcise || !
|
|
2110
|
+
if (this.isConcise || !states_exports.checkForClosingTag(this)) {
|
|
2111
2111
|
this.startText();
|
|
2112
2112
|
}
|
|
2113
2113
|
break;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htmljs-parser",
|
|
3
3
|
"description": "An HTML parser recognizes content and string placeholders and allows JavaScript expressions as attribute values",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.3",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@changesets/changelog-github": "^0.4.6",
|
|
7
7
|
"@changesets/cli": "^2.24.1",
|