Sha256: 24127a6211edeb2a82fcb86f2e0cd06903aefb9a834e037d84178c3dc4d1ee65

Contents?: true

Size: 1.05 KB

Versions: 136

Compression:

Stored size: 1.05 KB

Contents

From 27e4aa8d885e47a296ea78d114dbbe8fc7aa3508 Mon Sep 17 00:00:00 2001
From: Kevin Solorio <soloriok@gmail.com>
Date: Fri, 1 Feb 2019 14:32:42 -0800
Subject: [PATCH] Revert-support-html-h-b-7-1

---
 entities.c | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/entities.c b/entities.c
index 43549bc5..82652f6d 100644
--- a/entities.c
+++ b/entities.c
@@ -623,23 +623,6 @@ xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) {
 	    *out++ = 't';
 	    *out++ = ';';
 	} else if (*cur == '&') {
-	    /*
-	     * Special handling of &{...} construct from HTML 4, see
-	     * http://www.w3.org/TR/html401/appendix/notes.html#h-B.7.1
-	     */
-	    if (html && attr && (cur[1] == '{') &&
-	        (strchr((const char *) cur, '}'))) {
-	        while (*cur != '}') {
-		    *out++ = *cur++;
-		    indx = out - buffer;
-		    if (indx + 100 > buffer_size) {
-			growBufferReentrant();
-			out = &buffer[indx];
-		    }
-		}
-		*out++ = *cur++;
-		continue;
-	    }
 	    *out++ = '&';
 	    *out++ = 'a';
 	    *out++ = 'm';
-- 
2.16.2

Version data entries

136 entries across 118 versions & 10 rubygems

Version Path
nokogiri-1.14.0 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.14.0.rc1 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.10 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.9 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.8 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.7 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.6 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.5 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.4 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.3 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.2 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.1 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.13.0 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.5 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.4 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.3 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.2 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.1 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.0 patches/libxml2/0001-Remove-script-macro-support.patch
nokogiri-1.12.0.rc1 patches/libxml2/0001-Remove-script-macro-support.patch