diff options
| author | Nicholas Drozd | 2019-02-16 16:37:52 -0600 |
|---|---|---|
| committer | Eli Zaretskii | 2019-02-22 09:52:57 +0200 |
| commit | 8282c34f0f2f4ad2c4956fc595518da64a7bef1f (patch) | |
| tree | 2432ac4729cb9cbec105e6c41345f3e41b763b6f /test/data | |
| parent | 3432f5545c1a0c8149d489d1df8cf1d037dae2df (diff) | |
| download | emacs-8282c34f0f2f4ad2c4956fc595518da64a7bef1f.tar.gz emacs-8282c34f0f2f4ad2c4956fc595518da64a7bef1f.zip | |
Handle HTML 'ol' start attribute in shr.el
* lisp/net/shr.el (shr-tag-ol): Don't automatically assume
1-indexing for all ordered lists, use <ol> if given.
* etc/NEWS: Announce change in shr behavior.
* test/data/shr/ol.html:
* test/data/shr/ol.txt: New test data files.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/shr/ol.html | 29 | ||||
| -rw-r--r-- | test/data/shr/ol.txt | 19 |
2 files changed, 48 insertions, 0 deletions
diff --git a/test/data/shr/ol.html b/test/data/shr/ol.html new file mode 100644 index 00000000000..f9a15f26409 --- /dev/null +++ b/test/data/shr/ol.html | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | <ol> | ||
| 2 | <li>one</li> | ||
| 3 | <li>two</li> | ||
| 4 | <li>three</li> | ||
| 5 | </ol> | ||
| 6 | |||
| 7 | <ol start="10"> | ||
| 8 | <li>ten</li> | ||
| 9 | <li>eleven</li> | ||
| 10 | <li>twelve</li> | ||
| 11 | </ol> | ||
| 12 | |||
| 13 | <ol start="0"> | ||
| 14 | <li>zero</li> | ||
| 15 | <li>one</li> | ||
| 16 | <li>two</li> | ||
| 17 | </ol> | ||
| 18 | |||
| 19 | <ol start="-5"> | ||
| 20 | <li>minus five</li> | ||
| 21 | <li>minus four</li> | ||
| 22 | <li>minus three</li> | ||
| 23 | </ol> | ||
| 24 | |||
| 25 | <ol start="notanumber"> | ||
| 26 | <li>one</li> | ||
| 27 | <li>two</li> | ||
| 28 | <li>three</li> | ||
| 29 | </ol> | ||
diff --git a/test/data/shr/ol.txt b/test/data/shr/ol.txt new file mode 100644 index 00000000000..0d46e2a8ddb --- /dev/null +++ b/test/data/shr/ol.txt | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | 1 one | ||
| 2 | 2 two | ||
| 3 | 3 three | ||
| 4 | |||
| 5 | 10 ten | ||
| 6 | 11 eleven | ||
| 7 | 12 twelve | ||
| 8 | |||
| 9 | 0 zero | ||
| 10 | 1 one | ||
| 11 | 2 two | ||
| 12 | |||
| 13 | -5 minus five | ||
| 14 | -4 minus four | ||
| 15 | -3 minus three | ||
| 16 | |||
| 17 | 1 one | ||
| 18 | 2 two | ||
| 19 | 3 three | ||