| OLD | NEW |
| 1 /* | 1 /* |
| 2 * HTMLtree.c : implementation of access function for an HTML tree. | 2 * HTMLtree.c : implementation of access function for an HTML tree. |
| 3 * | 3 * |
| 4 * See Copyright for the status of this software. | 4 * See Copyright for the status of this software. |
| 5 * | 5 * |
| 6 * daniel@veillard.com | 6 * daniel@veillard.com |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #define IN_LIBXML | 10 #define IN_LIBXML |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 } | 661 } |
| 662 xmlOutputBufferWriteString(buf, "<!DOCTYPE "); | 662 xmlOutputBufferWriteString(buf, "<!DOCTYPE "); |
| 663 xmlOutputBufferWriteString(buf, (const char *)cur->name); | 663 xmlOutputBufferWriteString(buf, (const char *)cur->name); |
| 664 if (cur->ExternalID != NULL) { | 664 if (cur->ExternalID != NULL) { |
| 665 xmlOutputBufferWriteString(buf, " PUBLIC "); | 665 xmlOutputBufferWriteString(buf, " PUBLIC "); |
| 666 xmlBufWriteQuotedString(buf->buffer, cur->ExternalID); | 666 xmlBufWriteQuotedString(buf->buffer, cur->ExternalID); |
| 667 if (cur->SystemID != NULL) { | 667 if (cur->SystemID != NULL) { |
| 668 xmlOutputBufferWriteString(buf, " "); | 668 xmlOutputBufferWriteString(buf, " "); |
| 669 xmlBufWriteQuotedString(buf->buffer, cur->SystemID); | 669 xmlBufWriteQuotedString(buf->buffer, cur->SystemID); |
| 670 } | 670 } |
| 671 } else if (cur->SystemID != NULL) { | 671 } else if (cur->SystemID != NULL && |
| 672 » xmlStrcmp(cur->SystemID, BAD_CAST "about:legacy-compat")) { |
| 672 xmlOutputBufferWriteString(buf, " SYSTEM "); | 673 xmlOutputBufferWriteString(buf, " SYSTEM "); |
| 673 xmlBufWriteQuotedString(buf->buffer, cur->SystemID); | 674 xmlBufWriteQuotedString(buf->buffer, cur->SystemID); |
| 674 } | 675 } |
| 675 xmlOutputBufferWriteString(buf, ">\n"); | 676 xmlOutputBufferWriteString(buf, ">\n"); |
| 676 } | 677 } |
| 677 | 678 |
| 678 /** | 679 /** |
| 679 * htmlAttrDumpOutput: | 680 * htmlAttrDumpOutput: |
| 680 * @buf: the HTML buffer output | 681 * @buf: the HTML buffer output |
| 681 * @doc: the document | 682 * @doc: the document |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 int | 1272 int |
| 1272 htmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) { | 1273 htmlSaveFileEnc(const char *filename, xmlDocPtr cur, const char *encoding) { |
| 1273 return(htmlSaveFileFormat(filename, cur, encoding, 1)); | 1274 return(htmlSaveFileFormat(filename, cur, encoding, 1)); |
| 1274 } | 1275 } |
| 1275 | 1276 |
| 1276 #endif /* LIBXML_OUTPUT_ENABLED */ | 1277 #endif /* LIBXML_OUTPUT_ENABLED */ |
| 1277 | 1278 |
| 1278 #define bottom_HTMLtree | 1279 #define bottom_HTMLtree |
| 1279 #include "elfgcchack.h" | 1280 #include "elfgcchack.h" |
| 1280 #endif /* LIBXML_HTML_ENABLED */ | 1281 #endif /* LIBXML_HTML_ENABLED */ |
| OLD | NEW |