all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#57131: regarding closing tags for non void html tags in html-mode skeletons
@ 2022-08-11  3:53 Yilkal Argaw
  2022-08-12 15:20 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Yilkal Argaw @ 2022-08-11  3:53 UTC (permalink / raw)
  To: 57131

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 <li> <p> 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-12 20:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-11  3:53 bug#57131: regarding closing tags for non void html tags in html-mode skeletons Yilkal Argaw
2022-08-12 15:20 ` Lars Ingebrigtsen
2022-08-12 20:56   ` Yilkal Argaw
2022-08-12 20:59     ` Yilkal Argaw

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.