diff options
| author | David Ponce | 2025-02-08 13:55:16 +0100 |
|---|---|---|
| committer | Eli Zaretskii | 2025-02-15 13:49:17 +0200 |
| commit | 7ad139d72108df78763b570b376fbe4aad952f72 (patch) | |
| tree | 0f4a84b439f7e20073b76df6d1efa90fc92bdc5d /java | |
| parent | a8a4c3a091bc6ebab40db3b33f4d15bb1040dbcb (diff) | |
| download | emacs-7ad139d72108df78763b570b376fbe4aad952f72.tar.gz emacs-7ad139d72108df78763b570b376fbe4aad952f72.zip | |
Fix DOM printing
Fix DOM printing when an attribute value is not a string, which is
often the case in SVG DOM. Don't print attributes without a
value. Refresh the list of HTML boolean attributes.
* lisp/dom.el (dom--html-boolean-attribute-p): New function.
(dom-print): Use it. Convert attribute value to string before to
call `url-insert-entities-in-string'. Don't print attribute
without a value. Compute indentation column outside of loop and
call `indent-line-to' to indent line. (Bug#5928)
* test/lisp/dom-tests.el (dom-tests-print-svg)
(dom-tests-print-html-boolean): New tests.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions