From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yilkal Argaw Newsgroups: gmane.emacs.bugs Subject: bug#57131: regarding closing tags for non void html tags in html-mode skeletons Date: Thu, 11 Aug 2022 06:53:27 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7476"; mail-complaints-to="usenet@ciao.gmane.io" To: 57131@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 11 05:54:34 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLzHG-0001ou-HE for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 11 Aug 2022 05:54:34 +0200 Original-Received: from localhost ([::1]:56028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLzHE-0006EZ-Vf for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Aug 2022 23:54:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLzGk-0006E6-Oe for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 23:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLzGk-0003kn-Fu for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 23:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLzGk-0000qi-8Q for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 23:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yilkal Argaw Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 11 Aug 2022 03:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57131 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16601900303244 (code B ref -1); Thu, 11 Aug 2022 03:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Aug 2022 03:53:50 +0000 Original-Received: from localhost ([127.0.0.1]:51114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLzGX-0000qG-LT for submit@debbugs.gnu.org; Wed, 10 Aug 2022 23:53:49 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43336) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLzGS-0000q4-JC for submit@debbugs.gnu.org; Wed, 10 Aug 2022 23:53:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLzGP-0006CZ-PC for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 23:53:44 -0400 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:40753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLzGO-0003id-1q for bug-gnu-emacs@gnu.org; Wed, 10 Aug 2022 23:53:41 -0400 Original-Received: by mail-yb1-xb34.google.com with SMTP id 123so26434465ybv.7 for ; Wed, 10 Aug 2022 20:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=wGS4OLIEHROMS7YDedF+/Y0tXbm3RDIybpcINvQ0CD4=; b=YRoOOsi/FipernxryP+4QFSJbp9ESL8+7mqtCjdH1Z/9eI4kf20v7VBVuuH5ug9rI4 VCUKHbzJ+jdJyhJ4eJsxgZiodm1mTs77Rx77JmOVrpWDWY88S+SeuDhtcP+vMRTSlVpa UgRXlXo1LJmJvrZ0t/A2ucPl3O/2hwjatkheZfqWLxUGdCOcsDzwib2t48XjhtCcWbus pYhzR6BSg7HvYXZvip6eM9IokCLAhsK6dIsz8QJgaPdWqSm87Jupcrrqunq98HOgvW9h WSU6IIxyMrK5s2H2Xi40LMw6HO6mFkHGqU+evD7ELqGtDn3C2kr/yt/XF6y3fgQXBUO7 0B9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=wGS4OLIEHROMS7YDedF+/Y0tXbm3RDIybpcINvQ0CD4=; b=3ZrUqVeysWWk4eeW4Hb6FaoVgNP1kK1uTpfp6A6nG1+eYcOdvWY14jWV9fKdO+PJt9 xSywXJMi1MXOWZahH9y3zb0Rshznn/HS3osiZ3v2Rwn3w2KwlGcz94awtFxlMGqAT5yK oZLGbf4PQbkXbXxNBE4UtR68TLxFx5yXOQPoUK0nGaPTQq2Ggbu2IR9G8Tg8zGw1/KdA kvUBc3jPZZVpiigBBH63jpWCyczQtoEjFJbpJMCVOM9sE/AddY3qQAUzPvRkDDd7ClHG DJzABA6ptZ7N0NSAeYpQ+I9jYX4lzrDy+MVHAlopFrKqm+4k0PKZGLq98Sue3/6qQOvA BBMg== X-Gm-Message-State: ACgBeo0mnoF3ad7ZhX6poYWE9yZHQxseB+9LnyohJI4TZNlShebFg/GR sO1mp4OI9BdV/uddFp+OWfo6gqCfQiK90vjz906RYodpwO8= X-Google-Smtp-Source: AA6agR7bL5nxvxn5nj4VlK42hhSV7xfbBezTtJCJFa42KmZt0UG0+ZISZRQAUSt/zhU2Qh8gZW88QDYfw0nB1hfZ8Hk= X-Received: by 2002:a05:6902:701:b0:678:9bcc:e8c6 with SMTP id k1-20020a056902070100b006789bcce8c6mr28367708ybt.120.1660190018016; Wed, 10 Aug 2022 20:53:38 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=yilkalargawworkneh@gmail.com; helo=mail-yb1-xb34.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:239326 Archived-At: Hi guys I've kindof raised this issue on the emacs-devel mailing list and I was recommended to report it as a bug or feature request in this mailing list so here it goes. In emacs insertion of html tags using the provided skeletons in html-mode and mhtml mode uses skeletons for insertion of tags using commands like sgml-tag. These skeletons are defined inside html-tags-alist. The problem with using them is that they would not generate closing tags for many of the tags (like
  • because it is assumed that only xml needs closing tags and the closing pairs are controlled by the variable sgml-xml-mode. There should be a variable to control this behaviour because the convention used widely in modern html is to close tags as long as they are not "void elements". This behaviour is even assumed in the indentation behaviour that it causes weird indentation when inserting the something like list items inside unordered list. This reference link mentioned the mailing list discussion by tomas@tuxteam.de regarding html void elements in the html5 specification might be a good reference [1] https://www.w3.org/TR/2011/WD-html-markup-20110113/syntax.html#syntax-elements always with regards Yilkal