New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vscode-html-languageservice

Package Overview
Dependencies
Maintainers
6
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-html-languageservice - npm Package Compare versions

Comparing version 1.0.1-next.3 to 1.0.1-next.4

1

lib/htmlLanguageService.d.ts

@@ -25,2 +25,3 @@ import { TextDocument, Position, CompletionItem, CompletionList, Hover, Range, SymbolInformation, Diagnostic, TextEdit, DocumentHighlight, FormattingOptions, MarkedString, DocumentLink } from 'vscode-languageserver-types';

parent: Node;
attributeNames?: string[];
}

@@ -27,0 +28,0 @@ export declare enum TokenType {

@@ -118,2 +118,9 @@ (function (factory) {

break;
case htmlScanner_1.TokenType.AttributeName:
var attributeNames = curr.attributeNames;
if (!attributeNames) {
curr.attributeNames = attributeNames = [];
}
attributeNames.push(scanner.getTokenText());
break;
}

@@ -120,0 +127,0 @@ token = scanner.scan();

2

lib/parser/htmlScanner.js

@@ -352,3 +352,3 @@ (function (factory) {

}
var attributeValue = stream.advanceIfRegExp(/^[^\s"'`=<>]+/);
var attributeValue = stream.advanceIfRegExp(/^[^\s"'`=<>\/]+/);
if (attributeValue.length > 0) {

@@ -355,0 +355,0 @@ if (lastAttributeName === 'type') {

@@ -518,2 +518,17 @@ (function (factory) {

});
test('Tag with Attributes, no quotes, self close', function () {
assertTokens([{
input: '<abc foo=bar/>',
tokens: [
{ offset: 0, type: htmlScanner_1.TokenType.StartTagOpen },
{ offset: 1, type: htmlScanner_1.TokenType.StartTag, content: 'abc' },
{ offset: 4, type: htmlScanner_1.TokenType.Whitespace },
{ offset: 5, type: htmlScanner_1.TokenType.AttributeName },
{ offset: 8, type: htmlScanner_1.TokenType.DelimiterAssign },
{ offset: 9, type: htmlScanner_1.TokenType.AttributeValue },
{ offset: 12, type: htmlScanner_1.TokenType.StartTagSelfClose }
]
}
]);
});
test('Tag with Attribute And Whitespace', function () {

@@ -520,0 +535,0 @@ assertTokens([{

{
"name": "vscode-html-languageservice",
"version": "1.0.1-next.3",
"version": "1.0.1-next.4",
"description": "Language service for HTML",

@@ -5,0 +5,0 @@ "main": "./lib/htmlLanguageService.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc