From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Farough Newsgroups: gmane.emacs.bugs Subject: bug#51525: 27.2; shr.el fails to render tags missing a title attribute Date: Sun, 31 Oct 2021 00:12:27 -0400 Message-ID: <87pmrl25p0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3867"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: 51525@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 08:49:14 2021 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 1mh5ab-0000l7-JG for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 08:49:13 +0100 Original-Received: from localhost ([::1]:54172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mh5aZ-0003dU-N5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 03:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh5aR-0003bv-TZ for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 03:49:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mh5aQ-0008RK-Ew for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 03:49:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mh5aQ-00046O-DQ for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 03:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Greg Farough Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Oct 2021 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51525 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.163566651315716 (code B ref -1); Sun, 31 Oct 2021 07:49:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Oct 2021 07:48:33 +0000 Original-Received: from localhost ([127.0.0.1]:58899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh5Zx-00045L-1H for submit@debbugs.gnu.org; Sun, 31 Oct 2021 03:48:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:43082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mh2Cr-0006zZ-Rw for submit@debbugs.gnu.org; Sun, 31 Oct 2021 00:12:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh2Cr-0000jf-MI for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 00:12:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh2Cr-0008GM-5B for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 00:12:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=nlXKxXSjBZgmldPwmQJ+m1g7n7ePvAAJH3rARL/8Kl4=; b=WQHdmLRvMeyQzT aa0oyDYyl+D507cIwBJ95WA2/kAo24bb7SlsH9jAHAgyazuEqQmFoID2dmfdumJK1fBF6TDtFvMt/ Yvvs+dndGLDm8m82BZD4fLwwZsFLVWPlfCVq4u2fLw7Ds35+NAoraJ/DHeWMcZUDJI2E5m1lRDhdd vnc+xHtu/pkTkYYym+BpZkKJzemPEXztEfmPKsiRm55gSuJ6Wu8mimA5iPiEpFN2N+mTj6/qc8cqX vk6poNTWzXNJAB3TE6nlM2x81Z74O+NS+Jy91yNo7gFEbasi+dpW3h3j9kwDfBB54NjBj7UBuvIU6 H4JnUpwV7oHX07AEvOYQ==; Original-Received: from ool-ae2ce474.dyn.optonline.net ([174.44.228.116]:49416 helo=willow) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mh2Cq-0006i6-Qt for bug-gnu-emacs@gnu.org; Sun, 31 Oct 2021 00:12:28 -0400 X-Mailman-Approved-At: Sun, 31 Oct 2021 03:48:31 -0400 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:218661 Archived-At: It looks like shr.el will skip over rendering HTML tags that are missing the "title" attribute. It seems a little strange to me, but according to MDN[1] that attribute is optional, and examples of it being omitted can be found out in the wild. To verify this, you can use eww.el to open this test page[2] I've written on Emacs 27.2 or the master branch. The first paragraph contains an tag with a title attribute, and the second one contains an tag that does not. As a bonus, I have a real world and holiday-appropriate example[3] from Bram Stoker's Dracula. Search for "welcome," and you should see this: "I am Dracula; and I bid you welcome, Harker, to my house." The extra space before Harker is due to "Mr." being enclosed in an tag that has no title attribute. Not a major bug by any means, but I thought I'd let you all know. Thanks very much. -g [1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr [2]: https://gregf.beevomit.org/abbr.html [3]: https://standardebooks.org/ebooks/bram-stoker/dracula/text/chapter-2 In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure CONFIG_SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash SHELL=/gnu/store/pwcp239kjf7lnj5i4lkdzcfcxwcfyk72-bash-minimal-5.0.16/bin/bash --prefix=/gnu/store/ymvcv4shwva26r3k9mxh5d38hsbrygpb-emacs-27.2 --enable-fast-install --with-modules --with-cairo --disable-build-details' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS JSON PDUMPER GMP Important settings: value of $EMACSLOADPATH: /gnu/store/vdxz1c1s2cmy4qynj8vmz8nvpwvl31w0-profile/share/emacs/site-lisp:/gnu/store/ymvcv4shwva26r3k9mxh5d38hsbrygpb-emacs-27.2/share/emacs/27.2/lisp locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils disp-table tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 43402 10579) (symbols 48 6002 1) (strings 32 15181 1838) (string-bytes 1 505260) (vectors 16 6786) (vector-slots 8 75937 8440) (floats 8 17 345) (intervals 56 199 201) (buffers 1000 11)) -- "We carry a new world here, in our hearts. That world is growing in this minute."