From 879760851030669b8848f44ae77fb87afd1602c2 Mon Sep 17 00:00:00 2001 From: Jens Oliver Meiert Date: Fri, 29 Nov 2024 11:39:57 +0100 Subject: [PATCH 1/2] feat: update lists of obsolete HTML elements/attributes Expanded the obsolete HTML elements list to include 'param', 'rb', and 'rtc'. Updated the attributes list with 'background' for more comprehensive checking of obsolete/proprietary HTML usage. (This commit message was AI-generated.) Signed-off-by: Jens Oliver Meiert --- bin/obsohtml.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/obsohtml.js b/bin/obsohtml.js index 48a1fbb..38f3e2a 100755 --- a/bin/obsohtml.js +++ b/bin/obsohtml.js @@ -8,12 +8,12 @@ const program = new Command(); // List of obsolete or proprietary HTML elements const obsoleteElements = [ - 'acronym', 'applet', 'basefont', 'bgsound', 'big', 'blink', 'center', 'command', 'content', 'dir', 'element', 'font', 'frame', 'frameset', 'image', 'isindex', 'keygen', 'listing', 'marquee', 'menuitem', 'multicol', 'nextid', 'nobr', 'noembed', 'noframes', 'plaintext', 'shadow', 'spacer', 'strike', 'tt', 'xmp' + 'acronym', 'applet', 'basefont', 'bgsound', 'big', 'blink', 'center', 'command', 'content', 'dir', 'element', 'font', 'frame', 'frameset', 'image', 'isindex', 'keygen', 'listing', 'marquee', 'menuitem', 'multicol', 'nextid', 'nobr', 'noembed', 'noframes', 'param', 'plaintext', 'rb', 'rtc', 'shadow', 'spacer', 'strike', 'tt', 'xmp' ]; // List of obsolete or proprietary HTML attributes const obsoleteAttributes = [ - 'align', 'bgcolor', 'border', 'frameborder', 'marginwidth', 'marginheight', 'scrolling', 'valign', 'hspace', 'vspace', 'noshade', 'nowrap' + 'align', 'background', 'bgcolor', 'border', 'frameborder', 'hspace', 'marginheight', 'marginwidth', 'noshade', 'nowrap', 'scrolling', 'valign', 'vspace' ]; // Default project directory (user’s home directory) From 3783a83fc2afbaa39f199ab34c8f271960e654de Mon Sep 17 00:00:00 2001 From: Jens Oliver Meiert Date: Fri, 29 Nov 2024 11:40:44 +0100 Subject: [PATCH 2/2] feat: bump version to 1.7.0 Update package.json and package-lock.json to reflect the new version 1.7.0. This version bump indicates the addition of new features or improvements, ensuring compatibility with the updated package contents. (This commit message was AI-generated.) Signed-off-by: Jens Oliver Meiert --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e82bef9..a1eeb02 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@j9t/obsohtml", - "version": "1.6.3", + "version": "1.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@j9t/obsohtml", - "version": "1.6.3", + "version": "1.7.0", "license": "CC-BY-SA-4.0", "dependencies": { "chalk": "^5.3.0", diff --git a/package.json b/package.json index 6e950f2..fb1a0c1 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@j9t/obsohtml", "description": "Find obsolete HTML elements and attributes", "author": "Jens Oliver Meiert", - "version": "1.6.3", + "version": "1.7.0", "license": "CC-BY-SA-4.0", "repository": { "type": "git",