htmljs-parser 5.1.3 → 5.1.4

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 CHANGED
@@ -132,22 +132,7 @@ function getPosAfterLine(lines, startLine, index) {
132
132
  var Parser = class {
133
133
  constructor(options) {
134
134
  this.options = options;
135
- this.options = options;
136
135
  }
137
- pos;
138
- maxPos;
139
- data;
140
- activeState;
141
- activeRange;
142
- forward;
143
- activeTag;
144
- activeAttr;
145
- indent;
146
- isConcise;
147
- beginMixedMode;
148
- endingMixedModeAtEOL;
149
- textPos;
150
- lines;
151
136
  read(range) {
152
137
  return this.data.slice(range.start, range.end);
153
138
  }
@@ -966,7 +951,7 @@ function shouldTerminateHtmlAttrValue(code, data, pos) {
966
951
  case 47 /* FORWARD_SLASH */:
967
952
  return data.charCodeAt(pos + 1) === 62 /* CLOSE_ANGLE_BRACKET */;
968
953
  case 62 /* CLOSE_ANGLE_BRACKET */:
969
- return data.charCodeAt(pos - 1) !== 61 /* EQUAL */;
954
+ return pos === this.start || data.charCodeAt(pos - 1) !== 61 /* EQUAL */;
970
955
  default:
971
956
  return false;
972
957
  }
package/dist/index.mjs CHANGED
@@ -107,22 +107,7 @@ function getPosAfterLine(lines, startLine, index) {
107
107
  var Parser = class {
108
108
  constructor(options) {
109
109
  this.options = options;
110
- this.options = options;
111
110
  }
112
- pos;
113
- maxPos;
114
- data;
115
- activeState;
116
- activeRange;
117
- forward;
118
- activeTag;
119
- activeAttr;
120
- indent;
121
- isConcise;
122
- beginMixedMode;
123
- endingMixedModeAtEOL;
124
- textPos;
125
- lines;
126
111
  read(range) {
127
112
  return this.data.slice(range.start, range.end);
128
113
  }
@@ -941,7 +926,7 @@ function shouldTerminateHtmlAttrValue(code, data, pos) {
941
926
  case 47 /* FORWARD_SLASH */:
942
927
  return data.charCodeAt(pos + 1) === 62 /* CLOSE_ANGLE_BRACKET */;
943
928
  case 62 /* CLOSE_ANGLE_BRACKET */:
944
- return data.charCodeAt(pos - 1) !== 61 /* EQUAL */;
929
+ return pos === this.start || data.charCodeAt(pos - 1) !== 61 /* EQUAL */;
945
930
  default:
946
931
  return false;
947
932
  }
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.3",
4
+ "version": "5.1.4",
5
5
  "devDependencies": {
6
6
  "@changesets/changelog-github": "^0.4.6",
7
7
  "@changesets/cli": "^2.24.1",