diff options
| author | Ulf Jasper | 2014-10-28 21:33:12 +0100 |
|---|---|---|
| committer | Ulf Jasper | 2014-10-28 21:33:12 +0100 |
| commit | 45f0de5a7123f5f50ba858902b240b1cdb604e44 (patch) | |
| tree | 4898de9cc006d9672f5baccb081296f5289fba5f /src/xml.c | |
| parent | 48ec7450255fe77ea17191c607d87e4335e17c8a (diff) | |
| download | emacs-45f0de5a7123f5f50ba858902b240b1cdb604e44.tar.gz emacs-45f0de5a7123f5f50ba858902b240b1cdb604e44.zip | |
xml.c:parse_region: Do not forget the first document child.
* src/xml.c (parse_region): Do not forget the first document child.
* test/automated/libxml-tests.el: New file.
Diffstat (limited to 'src/xml.c')
| -rw-r--r-- | src/xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -216,7 +216,7 @@ parse_region (Lisp_Object start, Lisp_Object end, Lisp_Object base_url, int html | |||
| 216 | { | 216 | { |
| 217 | /* If the document is just comments, then this should get us the | 217 | /* If the document is just comments, then this should get us the |
| 218 | nodes anyway. */ | 218 | nodes anyway. */ |
| 219 | xmlNode *n = doc->children->next; | 219 | xmlNode *n = doc->children; |
| 220 | Lisp_Object r = Qnil; | 220 | Lisp_Object r = Qnil; |
| 221 | 221 | ||
| 222 | while (n) { | 222 | while (n) { |