One Hat Cyber Team
Your IP :
104.23.243.205
Server IP :
172.67.218.182
Server :
Linux 128-201-239-36.cprapid.com 3.10.0-1160.41.1.el7.x86_64 #1 SMP Tue Aug 31 14:52:47 UTC 2021 x86_64
Server Software :
Apache
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
juscatamarca
/
www
/
wp-includes
/
js
/
codemirror
/
Edit File:
htmlhint-kses.js
/* global HTMLHint */ /* eslint no-magic-numbers: ["error", { "ignore": [1] }] */ HTMLHint.addRule( { id: 'kses', description: 'Element or attribute cannot be used.', /** * Initialize. * * @this {import('htmlhint/types').Rule} * @param {import('htmlhint').HTMLParser} parser - Parser. * @param {import('htmlhint').Reporter} reporter - Reporter. * @param {Record<string, Record<string, boolean>>} options - KSES options. * @return {void} */ init: function ( parser, reporter, options ) { 'use strict'; parser.addListener( 'tagstart', ( event ) => { const tagName = event.tagName.toLowerCase(); if ( ! options[ tagName ] ) { reporter.error( `Tag <${ event.tagName }> is not allowed.`, event.line, event.col, this, event.raw ); return; } const allowedAttributes = options[ tagName ]; const column = event.col + event.tagName.length + 1; for ( const attribute of event.attrs ) { if ( ! allowedAttributes[ attribute.name.toLowerCase() ] ) { reporter.error( `Tag attribute [${ attribute.raw }] is not allowed.`, event.line, column + attribute.index, this, attribute.raw ); } } } ); }, } );
Simpan