Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: blocks.js
return;
[3000] Fix | Delete
}
[3001] Fix | Delete
else if (char === '/') {
[3002] Fix | Delete
this.transitionTo("selfClosingStartTag" /* selfClosingStartTag */);
[3003] Fix | Delete
this.consume();
[3004] Fix | Delete
}
[3005] Fix | Delete
else if (char === '>') {
[3006] Fix | Delete
this.consume();
[3007] Fix | Delete
this.delegate.finishTag();
[3008] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3009] Fix | Delete
}
[3010] Fix | Delete
else if (char === '=') {
[3011] Fix | Delete
this.delegate.reportSyntaxError('attribute name cannot start with equals sign');
[3012] Fix | Delete
this.transitionTo("attributeName" /* attributeName */);
[3013] Fix | Delete
this.delegate.beginAttribute();
[3014] Fix | Delete
this.consume();
[3015] Fix | Delete
this.delegate.appendToAttributeName(char);
[3016] Fix | Delete
}
[3017] Fix | Delete
else {
[3018] Fix | Delete
this.transitionTo("attributeName" /* attributeName */);
[3019] Fix | Delete
this.delegate.beginAttribute();
[3020] Fix | Delete
}
[3021] Fix | Delete
},
[3022] Fix | Delete
attributeName: function () {
[3023] Fix | Delete
var char = this.peek();
[3024] Fix | Delete
if (isSpace(char)) {
[3025] Fix | Delete
this.transitionTo("afterAttributeName" /* afterAttributeName */);
[3026] Fix | Delete
this.consume();
[3027] Fix | Delete
}
[3028] Fix | Delete
else if (char === '/') {
[3029] Fix | Delete
this.delegate.beginAttributeValue(false);
[3030] Fix | Delete
this.delegate.finishAttributeValue();
[3031] Fix | Delete
this.consume();
[3032] Fix | Delete
this.transitionTo("selfClosingStartTag" /* selfClosingStartTag */);
[3033] Fix | Delete
}
[3034] Fix | Delete
else if (char === '=') {
[3035] Fix | Delete
this.transitionTo("beforeAttributeValue" /* beforeAttributeValue */);
[3036] Fix | Delete
this.consume();
[3037] Fix | Delete
}
[3038] Fix | Delete
else if (char === '>') {
[3039] Fix | Delete
this.delegate.beginAttributeValue(false);
[3040] Fix | Delete
this.delegate.finishAttributeValue();
[3041] Fix | Delete
this.consume();
[3042] Fix | Delete
this.delegate.finishTag();
[3043] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3044] Fix | Delete
}
[3045] Fix | Delete
else if (char === '"' || char === "'" || char === '<') {
[3046] Fix | Delete
this.delegate.reportSyntaxError(char + ' is not a valid character within attribute names');
[3047] Fix | Delete
this.consume();
[3048] Fix | Delete
this.delegate.appendToAttributeName(char);
[3049] Fix | Delete
}
[3050] Fix | Delete
else {
[3051] Fix | Delete
this.consume();
[3052] Fix | Delete
this.delegate.appendToAttributeName(char);
[3053] Fix | Delete
}
[3054] Fix | Delete
},
[3055] Fix | Delete
afterAttributeName: function () {
[3056] Fix | Delete
var char = this.peek();
[3057] Fix | Delete
if (isSpace(char)) {
[3058] Fix | Delete
this.consume();
[3059] Fix | Delete
return;
[3060] Fix | Delete
}
[3061] Fix | Delete
else if (char === '/') {
[3062] Fix | Delete
this.delegate.beginAttributeValue(false);
[3063] Fix | Delete
this.delegate.finishAttributeValue();
[3064] Fix | Delete
this.consume();
[3065] Fix | Delete
this.transitionTo("selfClosingStartTag" /* selfClosingStartTag */);
[3066] Fix | Delete
}
[3067] Fix | Delete
else if (char === '=') {
[3068] Fix | Delete
this.consume();
[3069] Fix | Delete
this.transitionTo("beforeAttributeValue" /* beforeAttributeValue */);
[3070] Fix | Delete
}
[3071] Fix | Delete
else if (char === '>') {
[3072] Fix | Delete
this.delegate.beginAttributeValue(false);
[3073] Fix | Delete
this.delegate.finishAttributeValue();
[3074] Fix | Delete
this.consume();
[3075] Fix | Delete
this.delegate.finishTag();
[3076] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3077] Fix | Delete
}
[3078] Fix | Delete
else {
[3079] Fix | Delete
this.delegate.beginAttributeValue(false);
[3080] Fix | Delete
this.delegate.finishAttributeValue();
[3081] Fix | Delete
this.transitionTo("attributeName" /* attributeName */);
[3082] Fix | Delete
this.delegate.beginAttribute();
[3083] Fix | Delete
this.consume();
[3084] Fix | Delete
this.delegate.appendToAttributeName(char);
[3085] Fix | Delete
}
[3086] Fix | Delete
},
[3087] Fix | Delete
beforeAttributeValue: function () {
[3088] Fix | Delete
var char = this.peek();
[3089] Fix | Delete
if (isSpace(char)) {
[3090] Fix | Delete
this.consume();
[3091] Fix | Delete
}
[3092] Fix | Delete
else if (char === '"') {
[3093] Fix | Delete
this.transitionTo("attributeValueDoubleQuoted" /* attributeValueDoubleQuoted */);
[3094] Fix | Delete
this.delegate.beginAttributeValue(true);
[3095] Fix | Delete
this.consume();
[3096] Fix | Delete
}
[3097] Fix | Delete
else if (char === "'") {
[3098] Fix | Delete
this.transitionTo("attributeValueSingleQuoted" /* attributeValueSingleQuoted */);
[3099] Fix | Delete
this.delegate.beginAttributeValue(true);
[3100] Fix | Delete
this.consume();
[3101] Fix | Delete
}
[3102] Fix | Delete
else if (char === '>') {
[3103] Fix | Delete
this.delegate.beginAttributeValue(false);
[3104] Fix | Delete
this.delegate.finishAttributeValue();
[3105] Fix | Delete
this.consume();
[3106] Fix | Delete
this.delegate.finishTag();
[3107] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3108] Fix | Delete
}
[3109] Fix | Delete
else {
[3110] Fix | Delete
this.transitionTo("attributeValueUnquoted" /* attributeValueUnquoted */);
[3111] Fix | Delete
this.delegate.beginAttributeValue(false);
[3112] Fix | Delete
this.consume();
[3113] Fix | Delete
this.delegate.appendToAttributeValue(char);
[3114] Fix | Delete
}
[3115] Fix | Delete
},
[3116] Fix | Delete
attributeValueDoubleQuoted: function () {
[3117] Fix | Delete
var char = this.consume();
[3118] Fix | Delete
if (char === '"') {
[3119] Fix | Delete
this.delegate.finishAttributeValue();
[3120] Fix | Delete
this.transitionTo("afterAttributeValueQuoted" /* afterAttributeValueQuoted */);
[3121] Fix | Delete
}
[3122] Fix | Delete
else if (char === '&') {
[3123] Fix | Delete
this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');
[3124] Fix | Delete
}
[3125] Fix | Delete
else {
[3126] Fix | Delete
this.delegate.appendToAttributeValue(char);
[3127] Fix | Delete
}
[3128] Fix | Delete
},
[3129] Fix | Delete
attributeValueSingleQuoted: function () {
[3130] Fix | Delete
var char = this.consume();
[3131] Fix | Delete
if (char === "'") {
[3132] Fix | Delete
this.delegate.finishAttributeValue();
[3133] Fix | Delete
this.transitionTo("afterAttributeValueQuoted" /* afterAttributeValueQuoted */);
[3134] Fix | Delete
}
[3135] Fix | Delete
else if (char === '&') {
[3136] Fix | Delete
this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');
[3137] Fix | Delete
}
[3138] Fix | Delete
else {
[3139] Fix | Delete
this.delegate.appendToAttributeValue(char);
[3140] Fix | Delete
}
[3141] Fix | Delete
},
[3142] Fix | Delete
attributeValueUnquoted: function () {
[3143] Fix | Delete
var char = this.peek();
[3144] Fix | Delete
if (isSpace(char)) {
[3145] Fix | Delete
this.delegate.finishAttributeValue();
[3146] Fix | Delete
this.consume();
[3147] Fix | Delete
this.transitionTo("beforeAttributeName" /* beforeAttributeName */);
[3148] Fix | Delete
}
[3149] Fix | Delete
else if (char === '/') {
[3150] Fix | Delete
this.delegate.finishAttributeValue();
[3151] Fix | Delete
this.consume();
[3152] Fix | Delete
this.transitionTo("selfClosingStartTag" /* selfClosingStartTag */);
[3153] Fix | Delete
}
[3154] Fix | Delete
else if (char === '&') {
[3155] Fix | Delete
this.consume();
[3156] Fix | Delete
this.delegate.appendToAttributeValue(this.consumeCharRef() || '&');
[3157] Fix | Delete
}
[3158] Fix | Delete
else if (char === '>') {
[3159] Fix | Delete
this.delegate.finishAttributeValue();
[3160] Fix | Delete
this.consume();
[3161] Fix | Delete
this.delegate.finishTag();
[3162] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3163] Fix | Delete
}
[3164] Fix | Delete
else {
[3165] Fix | Delete
this.consume();
[3166] Fix | Delete
this.delegate.appendToAttributeValue(char);
[3167] Fix | Delete
}
[3168] Fix | Delete
},
[3169] Fix | Delete
afterAttributeValueQuoted: function () {
[3170] Fix | Delete
var char = this.peek();
[3171] Fix | Delete
if (isSpace(char)) {
[3172] Fix | Delete
this.consume();
[3173] Fix | Delete
this.transitionTo("beforeAttributeName" /* beforeAttributeName */);
[3174] Fix | Delete
}
[3175] Fix | Delete
else if (char === '/') {
[3176] Fix | Delete
this.consume();
[3177] Fix | Delete
this.transitionTo("selfClosingStartTag" /* selfClosingStartTag */);
[3178] Fix | Delete
}
[3179] Fix | Delete
else if (char === '>') {
[3180] Fix | Delete
this.consume();
[3181] Fix | Delete
this.delegate.finishTag();
[3182] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3183] Fix | Delete
}
[3184] Fix | Delete
else {
[3185] Fix | Delete
this.transitionTo("beforeAttributeName" /* beforeAttributeName */);
[3186] Fix | Delete
}
[3187] Fix | Delete
},
[3188] Fix | Delete
selfClosingStartTag: function () {
[3189] Fix | Delete
var char = this.peek();
[3190] Fix | Delete
if (char === '>') {
[3191] Fix | Delete
this.consume();
[3192] Fix | Delete
this.delegate.markTagAsSelfClosing();
[3193] Fix | Delete
this.delegate.finishTag();
[3194] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3195] Fix | Delete
}
[3196] Fix | Delete
else {
[3197] Fix | Delete
this.transitionTo("beforeAttributeName" /* beforeAttributeName */);
[3198] Fix | Delete
}
[3199] Fix | Delete
},
[3200] Fix | Delete
endTagOpen: function () {
[3201] Fix | Delete
var char = this.consume();
[3202] Fix | Delete
if (char === '@' || char === ':' || isAlpha(char)) {
[3203] Fix | Delete
this.transitionTo("endTagName" /* endTagName */);
[3204] Fix | Delete
this.tagNameBuffer = '';
[3205] Fix | Delete
this.delegate.beginEndTag();
[3206] Fix | Delete
this.appendToTagName(char);
[3207] Fix | Delete
}
[3208] Fix | Delete
}
[3209] Fix | Delete
};
[3210] Fix | Delete
this.reset();
[3211] Fix | Delete
}
[3212] Fix | Delete
EventedTokenizer.prototype.reset = function () {
[3213] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3214] Fix | Delete
this.input = '';
[3215] Fix | Delete
this.tagNameBuffer = '';
[3216] Fix | Delete
this.index = 0;
[3217] Fix | Delete
this.line = 1;
[3218] Fix | Delete
this.column = 0;
[3219] Fix | Delete
this.delegate.reset();
[3220] Fix | Delete
};
[3221] Fix | Delete
EventedTokenizer.prototype.transitionTo = function (state) {
[3222] Fix | Delete
this.state = state;
[3223] Fix | Delete
};
[3224] Fix | Delete
EventedTokenizer.prototype.tokenize = function (input) {
[3225] Fix | Delete
this.reset();
[3226] Fix | Delete
this.tokenizePart(input);
[3227] Fix | Delete
this.tokenizeEOF();
[3228] Fix | Delete
};
[3229] Fix | Delete
EventedTokenizer.prototype.tokenizePart = function (input) {
[3230] Fix | Delete
this.input += preprocessInput(input);
[3231] Fix | Delete
while (this.index < this.input.length) {
[3232] Fix | Delete
var handler = this.states[this.state];
[3233] Fix | Delete
if (handler !== undefined) {
[3234] Fix | Delete
handler.call(this);
[3235] Fix | Delete
}
[3236] Fix | Delete
else {
[3237] Fix | Delete
throw new Error("unhandled state " + this.state);
[3238] Fix | Delete
}
[3239] Fix | Delete
}
[3240] Fix | Delete
};
[3241] Fix | Delete
EventedTokenizer.prototype.tokenizeEOF = function () {
[3242] Fix | Delete
this.flushData();
[3243] Fix | Delete
};
[3244] Fix | Delete
EventedTokenizer.prototype.flushData = function () {
[3245] Fix | Delete
if (this.state === 'data') {
[3246] Fix | Delete
this.delegate.finishData();
[3247] Fix | Delete
this.transitionTo("beforeData" /* beforeData */);
[3248] Fix | Delete
}
[3249] Fix | Delete
};
[3250] Fix | Delete
EventedTokenizer.prototype.peek = function () {
[3251] Fix | Delete
return this.input.charAt(this.index);
[3252] Fix | Delete
};
[3253] Fix | Delete
EventedTokenizer.prototype.consume = function () {
[3254] Fix | Delete
var char = this.peek();
[3255] Fix | Delete
this.index++;
[3256] Fix | Delete
if (char === '\n') {
[3257] Fix | Delete
this.line++;
[3258] Fix | Delete
this.column = 0;
[3259] Fix | Delete
}
[3260] Fix | Delete
else {
[3261] Fix | Delete
this.column++;
[3262] Fix | Delete
}
[3263] Fix | Delete
return char;
[3264] Fix | Delete
};
[3265] Fix | Delete
EventedTokenizer.prototype.consumeCharRef = function () {
[3266] Fix | Delete
var endIndex = this.input.indexOf(';', this.index);
[3267] Fix | Delete
if (endIndex === -1) {
[3268] Fix | Delete
return;
[3269] Fix | Delete
}
[3270] Fix | Delete
var entity = this.input.slice(this.index, endIndex);
[3271] Fix | Delete
var chars = this.entityParser.parse(entity);
[3272] Fix | Delete
if (chars) {
[3273] Fix | Delete
var count = entity.length;
[3274] Fix | Delete
// consume the entity chars
[3275] Fix | Delete
while (count) {
[3276] Fix | Delete
this.consume();
[3277] Fix | Delete
count--;
[3278] Fix | Delete
}
[3279] Fix | Delete
// consume the `;`
[3280] Fix | Delete
this.consume();
[3281] Fix | Delete
return chars;
[3282] Fix | Delete
}
[3283] Fix | Delete
};
[3284] Fix | Delete
EventedTokenizer.prototype.markTagStart = function () {
[3285] Fix | Delete
this.delegate.tagOpen();
[3286] Fix | Delete
};
[3287] Fix | Delete
EventedTokenizer.prototype.appendToTagName = function (char) {
[3288] Fix | Delete
this.tagNameBuffer += char;
[3289] Fix | Delete
this.delegate.appendToTagName(char);
[3290] Fix | Delete
};
[3291] Fix | Delete
EventedTokenizer.prototype.isIgnoredEndTag = function () {
[3292] Fix | Delete
var tag = this.tagNameBuffer;
[3293] Fix | Delete
return (tag === 'title' && this.input.substring(this.index, this.index + 8) !== '</title>') ||
[3294] Fix | Delete
(tag === 'style' && this.input.substring(this.index, this.index + 8) !== '</style>') ||
[3295] Fix | Delete
(tag === 'script' && this.input.substring(this.index, this.index + 9) !== '</script>');
[3296] Fix | Delete
};
[3297] Fix | Delete
return EventedTokenizer;
[3298] Fix | Delete
}());
[3299] Fix | Delete
[3300] Fix | Delete
var Tokenizer = /** @class */ (function () {
[3301] Fix | Delete
function Tokenizer(entityParser, options) {
[3302] Fix | Delete
if (options === void 0) { options = {}; }
[3303] Fix | Delete
this.options = options;
[3304] Fix | Delete
this.token = null;
[3305] Fix | Delete
this.startLine = 1;
[3306] Fix | Delete
this.startColumn = 0;
[3307] Fix | Delete
this.tokens = [];
[3308] Fix | Delete
this.tokenizer = new EventedTokenizer(this, entityParser, options.mode);
[3309] Fix | Delete
this._currentAttribute = undefined;
[3310] Fix | Delete
}
[3311] Fix | Delete
Tokenizer.prototype.tokenize = function (input) {
[3312] Fix | Delete
this.tokens = [];
[3313] Fix | Delete
this.tokenizer.tokenize(input);
[3314] Fix | Delete
return this.tokens;
[3315] Fix | Delete
};
[3316] Fix | Delete
Tokenizer.prototype.tokenizePart = function (input) {
[3317] Fix | Delete
this.tokens = [];
[3318] Fix | Delete
this.tokenizer.tokenizePart(input);
[3319] Fix | Delete
return this.tokens;
[3320] Fix | Delete
};
[3321] Fix | Delete
Tokenizer.prototype.tokenizeEOF = function () {
[3322] Fix | Delete
this.tokens = [];
[3323] Fix | Delete
this.tokenizer.tokenizeEOF();
[3324] Fix | Delete
return this.tokens[0];
[3325] Fix | Delete
};
[3326] Fix | Delete
Tokenizer.prototype.reset = function () {
[3327] Fix | Delete
this.token = null;
[3328] Fix | Delete
this.startLine = 1;
[3329] Fix | Delete
this.startColumn = 0;
[3330] Fix | Delete
};
[3331] Fix | Delete
Tokenizer.prototype.current = function () {
[3332] Fix | Delete
var token = this.token;
[3333] Fix | Delete
if (token === null) {
[3334] Fix | Delete
throw new Error('token was unexpectedly null');
[3335] Fix | Delete
}
[3336] Fix | Delete
if (arguments.length === 0) {
[3337] Fix | Delete
return token;
[3338] Fix | Delete
}
[3339] Fix | Delete
for (var i = 0; i < arguments.length; i++) {
[3340] Fix | Delete
if (token.type === arguments[i]) {
[3341] Fix | Delete
return token;
[3342] Fix | Delete
}
[3343] Fix | Delete
}
[3344] Fix | Delete
throw new Error("token type was unexpectedly " + token.type);
[3345] Fix | Delete
};
[3346] Fix | Delete
Tokenizer.prototype.push = function (token) {
[3347] Fix | Delete
this.token = token;
[3348] Fix | Delete
this.tokens.push(token);
[3349] Fix | Delete
};
[3350] Fix | Delete
Tokenizer.prototype.currentAttribute = function () {
[3351] Fix | Delete
return this._currentAttribute;
[3352] Fix | Delete
};
[3353] Fix | Delete
Tokenizer.prototype.addLocInfo = function () {
[3354] Fix | Delete
if (this.options.loc) {
[3355] Fix | Delete
this.current().loc = {
[3356] Fix | Delete
start: {
[3357] Fix | Delete
line: this.startLine,
[3358] Fix | Delete
column: this.startColumn
[3359] Fix | Delete
},
[3360] Fix | Delete
end: {
[3361] Fix | Delete
line: this.tokenizer.line,
[3362] Fix | Delete
column: this.tokenizer.column
[3363] Fix | Delete
}
[3364] Fix | Delete
};
[3365] Fix | Delete
}
[3366] Fix | Delete
this.startLine = this.tokenizer.line;
[3367] Fix | Delete
this.startColumn = this.tokenizer.column;
[3368] Fix | Delete
};
[3369] Fix | Delete
// Data
[3370] Fix | Delete
Tokenizer.prototype.beginDoctype = function () {
[3371] Fix | Delete
this.push({
[3372] Fix | Delete
type: "Doctype" /* Doctype */,
[3373] Fix | Delete
name: '',
[3374] Fix | Delete
});
[3375] Fix | Delete
};
[3376] Fix | Delete
Tokenizer.prototype.appendToDoctypeName = function (char) {
[3377] Fix | Delete
this.current("Doctype" /* Doctype */).name += char;
[3378] Fix | Delete
};
[3379] Fix | Delete
Tokenizer.prototype.appendToDoctypePublicIdentifier = function (char) {
[3380] Fix | Delete
var doctype = this.current("Doctype" /* Doctype */);
[3381] Fix | Delete
if (doctype.publicIdentifier === undefined) {
[3382] Fix | Delete
doctype.publicIdentifier = char;
[3383] Fix | Delete
}
[3384] Fix | Delete
else {
[3385] Fix | Delete
doctype.publicIdentifier += char;
[3386] Fix | Delete
}
[3387] Fix | Delete
};
[3388] Fix | Delete
Tokenizer.prototype.appendToDoctypeSystemIdentifier = function (char) {
[3389] Fix | Delete
var doctype = this.current("Doctype" /* Doctype */);
[3390] Fix | Delete
if (doctype.systemIdentifier === undefined) {
[3391] Fix | Delete
doctype.systemIdentifier = char;
[3392] Fix | Delete
}
[3393] Fix | Delete
else {
[3394] Fix | Delete
doctype.systemIdentifier += char;
[3395] Fix | Delete
}
[3396] Fix | Delete
};
[3397] Fix | Delete
Tokenizer.prototype.endDoctype = function () {
[3398] Fix | Delete
this.addLocInfo();
[3399] Fix | Delete
};
[3400] Fix | Delete
Tokenizer.prototype.beginData = function () {
[3401] Fix | Delete
this.push({
[3402] Fix | Delete
type: "Chars" /* Chars */,
[3403] Fix | Delete
chars: ''
[3404] Fix | Delete
});
[3405] Fix | Delete
};
[3406] Fix | Delete
Tokenizer.prototype.appendToData = function (char) {
[3407] Fix | Delete
this.current("Chars" /* Chars */).chars += char;
[3408] Fix | Delete
};
[3409] Fix | Delete
Tokenizer.prototype.finishData = function () {
[3410] Fix | Delete
this.addLocInfo();
[3411] Fix | Delete
};
[3412] Fix | Delete
// Comment
[3413] Fix | Delete
Tokenizer.prototype.beginComment = function () {
[3414] Fix | Delete
this.push({
[3415] Fix | Delete
type: "Comment" /* Comment */,
[3416] Fix | Delete
chars: ''
[3417] Fix | Delete
});
[3418] Fix | Delete
};
[3419] Fix | Delete
Tokenizer.prototype.appendToCommentData = function (char) {
[3420] Fix | Delete
this.current("Comment" /* Comment */).chars += char;
[3421] Fix | Delete
};
[3422] Fix | Delete
Tokenizer.prototype.finishComment = function () {
[3423] Fix | Delete
this.addLocInfo();
[3424] Fix | Delete
};
[3425] Fix | Delete
// Tags - basic
[3426] Fix | Delete
Tokenizer.prototype.tagOpen = function () { };
[3427] Fix | Delete
Tokenizer.prototype.beginStartTag = function () {
[3428] Fix | Delete
this.push({
[3429] Fix | Delete
type: "StartTag" /* StartTag */,
[3430] Fix | Delete
tagName: '',
[3431] Fix | Delete
attributes: [],
[3432] Fix | Delete
selfClosing: false
[3433] Fix | Delete
});
[3434] Fix | Delete
};
[3435] Fix | Delete
Tokenizer.prototype.beginEndTag = function () {
[3436] Fix | Delete
this.push({
[3437] Fix | Delete
type: "EndTag" /* EndTag */,
[3438] Fix | Delete
tagName: ''
[3439] Fix | Delete
});
[3440] Fix | Delete
};
[3441] Fix | Delete
Tokenizer.prototype.finishTag = function () {
[3442] Fix | Delete
this.addLocInfo();
[3443] Fix | Delete
};
[3444] Fix | Delete
Tokenizer.prototype.markTagAsSelfClosing = function () {
[3445] Fix | Delete
this.current("StartTag" /* StartTag */).selfClosing = true;
[3446] Fix | Delete
};
[3447] Fix | Delete
// Tags - name
[3448] Fix | Delete
Tokenizer.prototype.appendToTagName = function (char) {
[3449] Fix | Delete
this.current("StartTag" /* StartTag */, "EndTag" /* EndTag */).tagName += char;
[3450] Fix | Delete
};
[3451] Fix | Delete
// Tags - attributes
[3452] Fix | Delete
Tokenizer.prototype.beginAttribute = function () {
[3453] Fix | Delete
this._currentAttribute = ['', '', false];
[3454] Fix | Delete
};
[3455] Fix | Delete
Tokenizer.prototype.appendToAttributeName = function (char) {
[3456] Fix | Delete
this.currentAttribute()[0] += char;
[3457] Fix | Delete
};
[3458] Fix | Delete
Tokenizer.prototype.beginAttributeValue = function (isQuoted) {
[3459] Fix | Delete
this.currentAttribute()[2] = isQuoted;
[3460] Fix | Delete
};
[3461] Fix | Delete
Tokenizer.prototype.appendToAttributeValue = function (char) {
[3462] Fix | Delete
this.currentAttribute()[1] += char;
[3463] Fix | Delete
};
[3464] Fix | Delete
Tokenizer.prototype.finishAttributeValue = function () {
[3465] Fix | Delete
this.current("StartTag" /* StartTag */).attributes.push(this._currentAttribute);
[3466] Fix | Delete
};
[3467] Fix | Delete
Tokenizer.prototype.reportSyntaxError = function (message) {
[3468] Fix | Delete
this.current().syntaxError = message;
[3469] Fix | Delete
};
[3470] Fix | Delete
return Tokenizer;
[3471] Fix | Delete
}());
[3472] Fix | Delete
[3473] Fix | Delete
function tokenize(input, options) {
[3474] Fix | Delete
var tokenizer = new Tokenizer(new EntityParser(namedCharRefs), options);
[3475] Fix | Delete
return tokenizer.tokenize(input);
[3476] Fix | Delete
}
[3477] Fix | Delete
[3478] Fix | Delete
[3479] Fix | Delete
[3480] Fix | Delete
// EXTERNAL MODULE: external ["wp","htmlEntities"]
[3481] Fix | Delete
var external_wp_htmlEntities_ = __webpack_require__("rmEH");
[3482] Fix | Delete
[3483] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/validation/logger.js
[3484] Fix | Delete
function createLogger() {
[3485] Fix | Delete
/**
[3486] Fix | Delete
* Creates a log handler with block validation prefix.
[3487] Fix | Delete
*
[3488] Fix | Delete
* @param {Function} logger Original logger function.
[3489] Fix | Delete
*
[3490] Fix | Delete
* @return {Function} Augmented logger function.
[3491] Fix | Delete
*/
[3492] Fix | Delete
function createLogHandler(logger) {
[3493] Fix | Delete
var log = function log(message) {
[3494] Fix | Delete
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
[3495] Fix | Delete
args[_key - 1] = arguments[_key];
[3496] Fix | Delete
}
[3497] Fix | Delete
[3498] Fix | Delete
return logger.apply(void 0, ['Block validation: ' + message].concat(args));
[3499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function