Comparing version 2.0.2 to 2.0.3
@@ -1,1 +0,1 @@ | ||
export const version = "2.0.2"; | ||
export const version = "2.0.3"; |
@@ -31,4 +31,5 @@ import { tokenize } from '../tokenizer/index.js'; | ||
fork: function(extension) { | ||
fork(extension) { | ||
const base = mix({}, config); // copy of config | ||
return createSyntax( | ||
@@ -35,0 +36,0 @@ typeof extension === 'function' |
@@ -1,2 +0,2 @@ | ||
import { Hash } from '../../tokenizer/index.js'; | ||
import { Hash, Delim } from '../../tokenizer/index.js'; | ||
@@ -22,3 +22,6 @@ export const name = 'IdSelector'; | ||
export function generate(node) { | ||
this.token(Hash, '#' + node.name); | ||
// Using Delim instead of Hash is a hack to avoid for a whitespace between ident and id-selector | ||
// in safe mode (e.g. "a#id"), because IE11 doesn't allow a sequence <ident-token> <hash-token> | ||
// without a whitespace in values (e.g. "1px solid#000") | ||
this.token(Delim, '#' + node.name); | ||
} |
{ | ||
"name": "css-tree", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A tool set for CSS: fast detailed parser (CSS → AST), walker (AST traversal), generator (AST → CSS) and lexer (validation and matching) based on specs and browser implementations", | ||
@@ -5,0 +5,0 @@ "author": "Roman Dvornov <rdvornov@gmail.com> (https://github.com/lahmatiy)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
1131446
21849