Function: shr-correct-dom-case

shr-correct-dom-case is a byte-compiled function defined in shr.el.gz.

Signature

(shr-correct-dom-case DOM)

Documentation

Correct the case for SVG segments.

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr-correct-dom-case (dom)
  "Correct the case for SVG segments."
  (dolist (attr (dom-attributes dom))
    (when-let ((rep (assoc-default (car attr) shr-correct-attribute-case)))
      (setcar attr rep)))
  (dolist (child (dom-children dom))
    (when (consp child)
      (shr-correct-dom-case child)))
  dom)