diff options
| author | RĂ¼diger Sonderfeld | 2013-12-01 16:41:10 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2013-12-01 16:41:10 +0100 |
| commit | eb2dd24d5b5c871f0b38667f460e4efd23fde799 (patch) | |
| tree | f6682de15f4a369c0292c68e94e9407bd4b28063 | |
| parent | 177948a5b2bdeca90b35fc4e0ab80ccc31aab06c (diff) | |
| download | emacs-eb2dd24d5b5c871f0b38667f460e4efd23fde799.tar.gz emacs-eb2dd24d5b5c871f0b38667f460e4efd23fde799.zip | |
(shr-tag-audio): Add support for <audio> tag.
| -rw-r--r-- | lisp/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/net/shr.el | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a4c9827236c..8efa64bd7e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * net/shr.el (shr-tag-video): Display content for video if no | 3 | * net/shr.el (shr-tag-video): Display content for video if no |
| 4 | poster is available. | 4 | poster is available. |
| 5 | (shr-tag-audio): Add support for <audio> tag. | ||
| 5 | 6 | ||
| 6 | * net/eww.el (eww-text-input-types): : New const. | 7 | * net/eww.el (eww-text-input-types): : New const. |
| 7 | (eww-process-text-input): Treat input types in | 8 | (eww-process-text-input): Treat input types in |
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index d4f57ee0bb1..30d97105bd7 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -1105,6 +1105,12 @@ ones, in case fg and bg are nil." | |||
| 1105 | (shr-insert " [video] ")) | 1105 | (shr-insert " [video] ")) |
| 1106 | (shr-urlify start (shr-expand-url url)))) | 1106 | (shr-urlify start (shr-expand-url url)))) |
| 1107 | 1107 | ||
| 1108 | (defun shr-tag-audio (cont) | ||
| 1109 | (let ((url (cdr (assq :src cont))) | ||
| 1110 | (start (point))) | ||
| 1111 | (shr-insert " [audio] ") | ||
| 1112 | (shr-urlify start (shr-expand-url url)))) | ||
| 1113 | |||
| 1108 | (defun shr-tag-img (cont &optional url) | 1114 | (defun shr-tag-img (cont &optional url) |
| 1109 | (when (or url | 1115 | (when (or url |
| 1110 | (and cont | 1116 | (and cont |