@markuplint/html-parser
Advanced tools
Comparing version 2.2.1 to 3.0.0-alpha.0
@@ -20,6 +20,2 @@ "use strict"; | ||
let offset = startOffset; | ||
const attrToken = (0, parser_utils_1.tokenizer)(raw, line, col, offset); | ||
line = attrToken.startLine; | ||
col = attrToken.startCol; | ||
offset = attrToken.startOffset; | ||
const spacesBeforeName = (0, parser_utils_1.tokenizer)(spacesBeforeAttrString, line, col, offset); | ||
@@ -54,2 +50,9 @@ line = spacesBeforeName.endLine; | ||
const endQuote = (0, parser_utils_1.tokenizer)(quoteChars, line, col, offset); | ||
const attrToken = (0, parser_utils_1.tokenizer)(nameChars + | ||
spacesBeforeEqualChars + | ||
(equalChars || '') + | ||
spacesAfterEqualChars + | ||
(quoteChars || '') + | ||
(valueChars || '') + | ||
(quoteChars || ''), name.startLine, name.startCol, name.startOffset); | ||
return { | ||
@@ -74,4 +77,10 @@ type: 'html-attr', | ||
isDuplicatable: false, | ||
nodeName: name.raw, | ||
parentNode: null, | ||
prevNode: null, | ||
nextNode: null, | ||
isFragment: false, | ||
isGhost: false, | ||
}; | ||
} | ||
exports.default = attrTokenizer; |
@@ -57,4 +57,9 @@ "use strict"; | ||
nodeName: originNode.nodeName, | ||
type: 'omittedtag', | ||
type: 'starttag', | ||
namespace: getNamespace(originNode), | ||
attributes: [], | ||
hasSpreadAttr: false, | ||
pearNode: null, | ||
tagCloseChar: '', | ||
tagOpenChar: '', | ||
parentNode, | ||
@@ -61,0 +66,0 @@ prevNode, |
{ | ||
"name": "@markuplint/html-parser", | ||
"version": "2.2.1", | ||
"version": "3.0.0-alpha.0", | ||
"description": "HTML parser for markuplint", | ||
@@ -23,8 +23,8 @@ "repository": "git@github.com:markuplint/markuplint.git", | ||
"dependencies": { | ||
"@markuplint/ml-ast": "2.0.1-dev.20220307.0", | ||
"@markuplint/parser-utils": "2.2.0", | ||
"@markuplint/ml-ast": "3.0.0-alpha.0", | ||
"@markuplint/parser-utils": "3.0.0-alpha.0", | ||
"parse5": "^6.0.1", | ||
"tslib": "^2.3.1" | ||
}, | ||
"gitHead": "0c774ce046ebc8a9c494e9884a4bfcd72a66250d" | ||
"gitHead": "d32c522e016888e20bcbb5f09352c006b964f193" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96808
989
2
+ Added@markuplint/ml-ast@3.0.0-alpha.0(transitive)
+ Added@markuplint/parser-utils@3.0.0-alpha.0(transitive)
+ Added@markuplint/types@3.0.0-alpha.0(transitive)
- Removed@markuplint/ml-ast@2.0.1-dev.20220307.0(transitive)
- Removed@markuplint/parser-utils@2.2.0(transitive)
- Removed@markuplint/types@2.1.0(transitive)