From c3b7dfa918476abf6dfae32db898994fb860f226 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 15 Jul 2024 17:33:53 +0800 Subject: [PATCH] WebUI: omit closing on HTML void elements https://developer.mozilla.org/en-US/docs/Glossary/Void_element#self-closing_tags : >Self-closing tags () do not exist in HTML. --- src/webui/www/.htmlvalidate.json | 1 - src/webui/www/private/addpeers.html | 4 +- src/webui/www/private/addtrackers.html | 10 +- src/webui/www/private/confirmdeletion.html | 10 +- .../www/private/confirmfeeddeletion.html | 8 +- src/webui/www/private/confirmruleclear.html | 8 +- .../www/private/confirmruledeletion.html | 8 +- src/webui/www/private/download.html | 36 +- src/webui/www/private/downloadlimit.html | 6 +- src/webui/www/private/edittracker.html | 12 +- src/webui/www/private/index.html | 216 +++++------ src/webui/www/private/newcategory.html | 10 +- src/webui/www/private/newfeed.html | 8 +- src/webui/www/private/newfolder.html | 8 +- src/webui/www/private/newrule.html | 8 +- src/webui/www/private/newtag.html | 8 +- src/webui/www/private/rename.html | 8 +- src/webui/www/private/rename_feed.html | 8 +- src/webui/www/private/rename_file.html | 8 +- src/webui/www/private/rename_files.html | 16 +- src/webui/www/private/rename_rule.html | 8 +- src/webui/www/private/setlocation.html | 8 +- src/webui/www/private/shareratio.html | 24 +- src/webui/www/private/upload.html | 34 +- src/webui/www/private/uploadlimit.html | 6 +- src/webui/www/private/views/about.html | 6 +- src/webui/www/private/views/filters.html | 28 +- .../private/views/installsearchplugin.html | 2 +- src/webui/www/private/views/log.html | 6 +- src/webui/www/private/views/preferences.html | 348 +++++++++--------- .../www/private/views/propertiesToolbar.html | 2 +- src/webui/www/private/views/rss.html | 22 +- .../www/private/views/rssDownloader.html | 26 +- src/webui/www/private/views/search.html | 18 +- .../www/private/views/searchplugins.html | 4 +- src/webui/www/public/index.html | 24 +- 36 files changed, 483 insertions(+), 484 deletions(-) diff --git a/src/webui/www/.htmlvalidate.json b/src/webui/www/.htmlvalidate.json index fa2b5eb5b..2c61fff0a 100644 --- a/src/webui/www/.htmlvalidate.json +++ b/src/webui/www/.htmlvalidate.json @@ -6,7 +6,6 @@ "long-title": "off", "no-inline-style": "off", "prefer-button": "off", - "void-style": "off", "wcag/h63": "off", "wcag/h71": "off" } diff --git a/src/webui/www/private/addpeers.html b/src/webui/www/private/addpeers.html index 811276dc0..f7d0a1a27 100644 --- a/src/webui/www/private/addpeers.html +++ b/src/webui/www/private/addpeers.html @@ -2,9 +2,9 @@ - + QBT_TR(Add Peers)QBT_TR[CONTEXT=PeersAdditionDialog] - + @@ -17,7 +17,7 @@
-
+

QBT_TR(Download Torrents from their URLs or Magnet links)QBT_TR[CONTEXT=HttpServer]

QBT_TR(Only one link per line)QBT_TR[CONTEXT=HttpServer]

@@ -40,7 +40,7 @@ - + @@ -48,7 +48,7 @@ - + @@ -56,7 +56,7 @@ - + @@ -68,7 +68,7 @@ - +
@@ -77,8 +77,8 @@ - - + + @@ -86,7 +86,7 @@ - + @@ -106,7 +106,7 @@ - + @@ -126,7 +126,7 @@ - + @@ -134,7 +134,7 @@ - + @@ -142,8 +142,8 @@ - - + + @@ -151,8 +151,8 @@ - - + + diff --git a/src/webui/www/private/downloadlimit.html b/src/webui/www/private/downloadlimit.html index 48828a5ab..ab4586f8a 100644 --- a/src/webui/www/private/downloadlimit.html +++ b/src/webui/www/private/downloadlimit.html @@ -2,9 +2,9 @@ - + QBT_TR(Torrent Download Speed Limiting)QBT_TR[CONTEXT=TransferListWidget] - + @@ -21,7 +21,7 @@
- + @@ -56,70 +56,70 @@
  • QBT_TR(File)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(Edit)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(View)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(Tools)QBT_TR[CONTEXT=MainWindow]
  • QBT_TR(Help)QBT_TR[CONTEXT=MainWindow]
  •    - QBT_TR(Add Torrent Link...)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Add Torrent File...)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget] - QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget] - QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Add Torrent Link...)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Add Torrent File...)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Remove)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Start)QBT_TR[CONTEXT=TransferListWidget] + QBT_TR(Stop)QBT_TR[CONTEXT=TransferListWidget] - QBT_TR(Top of Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Move Up Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Move Down Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Bottom of Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Top of Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Move Up Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Move Down Queue)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Bottom of Queue)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Options)QBT_TR[CONTEXT=OptionsDialog] + QBT_TR(Options)QBT_TR[CONTEXT=OptionsDialog]
    - +
    @@ -140,98 +140,98 @@
      -
    • QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget] QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget]
    • +
    • QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget] QBT_TR(Rename...)QBT_TR[CONTEXT=PropertiesWidget]
    • QBT_TR(Priority)QBT_TR[CONTEXT=PropertiesWidget]
        @@ -243,7 +243,7 @@
      @@ -255,9 +255,9 @@ - QBT_TR(Connection status: Firewalled)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Connection status: Firewalled)QBT_TR[CONTEXT=MainWindow] - QBT_TR(Alternative speed limits: Off)QBT_TR[CONTEXT=MainWindow] + QBT_TR(Alternative speed limits: Off)QBT_TR[CONTEXT=MainWindow] QBT_TR(Download speed icon)QBT_TR[CONTEXT=MainWindow] diff --git a/src/webui/www/private/newcategory.html b/src/webui/www/private/newcategory.html index b652d911d..4edb689d6 100644 --- a/src/webui/www/private/newcategory.html +++ b/src/webui/www/private/newcategory.html @@ -2,9 +2,9 @@ - + QBT_TR(New Category)QBT_TR[CONTEXT=TransferListWidget] - + @@ -140,11 +140,11 @@

      QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]:

      - +

      QBT_TR(Save path)QBT_TR[CONTEXT=TransferListWidget]:

      - +
      - +
      diff --git a/src/webui/www/private/newfeed.html b/src/webui/www/private/newfeed.html index a27a5b813..30a20725d 100644 --- a/src/webui/www/private/newfeed.html +++ b/src/webui/www/private/newfeed.html @@ -2,9 +2,9 @@ - + QBT_TR(Please type a RSS feed URL)QBT_TR[CONTEXT=RSSWidget] - + @@ -67,9 +67,9 @@

      QBT_TR(Feed URL:)QBT_TR[CONTEXT=RSSWidget]

      - +
      - +
      diff --git a/src/webui/www/private/newfolder.html b/src/webui/www/private/newfolder.html index a3cbbb326..b614205c9 100644 --- a/src/webui/www/private/newfolder.html +++ b/src/webui/www/private/newfolder.html @@ -2,9 +2,9 @@ - + QBT_TR(Please choose a folder name)QBT_TR[CONTEXT=RSSWidget] - + @@ -69,9 +69,9 @@

      QBT_TR(Folder name:)QBT_TR[CONTEXT=RSSWidget]

      - +
      - +
      diff --git a/src/webui/www/private/newrule.html b/src/webui/www/private/newrule.html index 0ec2d6d8d..134caa684 100644 --- a/src/webui/www/private/newrule.html +++ b/src/webui/www/private/newrule.html @@ -2,9 +2,9 @@ - + QBT_TR(New rule name)QBT_TR[CONTEXT=AutomatedRssDownloader] - + @@ -59,9 +59,9 @@

      QBT_TR(Please type the name of the new download rule.)QBT_TR[CONTEXT=AutomatedRssDownloader]

      - +
      - +
      diff --git a/src/webui/www/private/newtag.html b/src/webui/www/private/newtag.html index b02937e22..d1d57f031 100644 --- a/src/webui/www/private/newtag.html +++ b/src/webui/www/private/newtag.html @@ -2,9 +2,9 @@ - + QBT_TR(Add Tags)QBT_TR[CONTEXT=TransferListWidget] - + @@ -95,9 +95,9 @@

      QBT_TR(Comma-separated tags:)QBT_TR[CONTEXT=TransferListWidget]

      - +
      - +
      diff --git a/src/webui/www/private/rename.html b/src/webui/www/private/rename.html index 20d6c5371..0fd0908b8 100644 --- a/src/webui/www/private/rename.html +++ b/src/webui/www/private/rename.html @@ -2,9 +2,9 @@ - + QBT_TR(Rename)QBT_TR[CONTEXT=TransferListWidget] - + @@ -65,9 +65,9 @@

      QBT_TR(New name)QBT_TR[CONTEXT=TransferListWidget]:

      - +
      - +
      diff --git a/src/webui/www/private/rename_feed.html b/src/webui/www/private/rename_feed.html index 4002286d7..0ff46452a 100644 --- a/src/webui/www/private/rename_feed.html +++ b/src/webui/www/private/rename_feed.html @@ -2,9 +2,9 @@ - + QBT_TR(Please choose a new name for this RSS feed)QBT_TR[CONTEXT=RSSWidget] - + @@ -76,9 +76,9 @@

      QBT_TR(New feed name:)QBT_TR[CONTEXT=RSSWidget]

      - +
      - +
      diff --git a/src/webui/www/private/rename_file.html b/src/webui/www/private/rename_file.html index 2b525070b..eaaf4aee1 100644 --- a/src/webui/www/private/rename_file.html +++ b/src/webui/www/private/rename_file.html @@ -2,9 +2,9 @@ - + QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView] - + @@ -85,9 +85,9 @@

      QBT_TR(New name:)QBT_TR[CONTEXT=TorrentContentTreeView]

      - +
      - +
      diff --git a/src/webui/www/private/rename_files.html b/src/webui/www/private/rename_files.html index 9b5a95f7a..ea4c4b5ea 100644 --- a/src/webui/www/private/rename_files.html +++ b/src/webui/www/private/rename_files.html @@ -2,7 +2,7 @@ - + QBT_TR(Renaming)QBT_TR[CONTEXT=TorrentContentTreeView] @@ -410,21 +410,21 @@
      - +

      - +
      - +
      - +

      @@ -435,15 +435,15 @@
      - +
      - +
      - +
      diff --git a/src/webui/www/private/rename_rule.html b/src/webui/www/private/rename_rule.html index d17eebebb..94316836d 100644 --- a/src/webui/www/private/rename_rule.html +++ b/src/webui/www/private/rename_rule.html @@ -2,9 +2,9 @@ - + QBT_TR(Rule renaming)QBT_TR[CONTEXT=AutomatedRssDownloader] - + @@ -70,9 +70,9 @@

      QBT_TR(Please type the new rule name)QBT_TR[CONTEXT=AutomatedRssDownloader]

      - +
      - +
      diff --git a/src/webui/www/private/setlocation.html b/src/webui/www/private/setlocation.html index 11308054b..68fb9bf9f 100644 --- a/src/webui/www/private/setlocation.html +++ b/src/webui/www/private/setlocation.html @@ -2,9 +2,9 @@ - + QBT_TR(Set location)QBT_TR[CONTEXT=HttpServer] - + @@ -69,10 +69,10 @@

      QBT_TR(Location)QBT_TR[CONTEXT=TransferListWidget]:

      - +
       
      - +
      diff --git a/src/webui/www/private/shareratio.html b/src/webui/www/private/shareratio.html index 4db2e739b..0921a9c3e 100644 --- a/src/webui/www/private/shareratio.html +++ b/src/webui/www/private/shareratio.html @@ -2,9 +2,9 @@ - + QBT_TR(Torrent Upload/Download Ratio Limiting)QBT_TR[CONTEXT=UpDownRatioDialog] - + @@ -166,27 +166,27 @@
      - QBT_TR(Use global share limit)QBT_TR[CONTEXT=UpDownRatioDialog]
      - QBT_TR(Set no share limit)QBT_TR[CONTEXT=UpDownRatioDialog]
      - QBT_TR(Set share limit to)QBT_TR[CONTEXT=UpDownRatioDialog]
      + QBT_TR(Use global share limit)QBT_TR[CONTEXT=UpDownRatioDialog]
      + QBT_TR(Set no share limit)QBT_TR[CONTEXT=UpDownRatioDialog]
      + QBT_TR(Set share limit to)QBT_TR[CONTEXT=UpDownRatioDialog]
      - + - +
      - + - +
      - + - +
      - +
      diff --git a/src/webui/www/private/upload.html b/src/webui/www/private/upload.html index 71e65d23a..d7e10f8c2 100644 --- a/src/webui/www/private/upload.html +++ b/src/webui/www/private/upload.html @@ -2,10 +2,10 @@ - + QBT_TR(Upload local torrent)QBT_TR[CONTEXT=HttpServer] - - + + @@ -15,7 +15,7 @@
      - +
      @@ -36,7 +36,7 @@ @@ -44,7 +44,7 @@ @@ -56,7 +56,7 @@ - + @@ -65,8 +65,8 @@ @@ -74,7 +74,7 @@ @@ -94,7 +94,7 @@ @@ -114,7 +114,7 @@ @@ -122,7 +122,7 @@ @@ -130,8 +130,8 @@ @@ -139,8 +139,8 @@ diff --git a/src/webui/www/private/uploadlimit.html b/src/webui/www/private/uploadlimit.html index ef3b2731b..8aa879a5f 100644 --- a/src/webui/www/private/uploadlimit.html +++ b/src/webui/www/private/uploadlimit.html @@ -2,9 +2,9 @@ - + QBT_TR(Torrent Upload Speed Limiting)QBT_TR[CONTEXT=TransferListWidget] - + @@ -21,7 +21,7 @@
      - + @@ -27,20 +27,20 @@

      qBittorrent WebUI

      -
      - +
      +
      -
      - +
      +
      - +
      - +
      - +
      - - + +
      - +
      - +
      - +
      - +
      - - + +
      - - + +