From b55b63804e85d839a30412916517070a0e854427 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Mon, 16 Feb 2015 20:37:30 +0100 Subject: [PATCH] parser: Enable these SVG attribute replacements The most recent version of the HTML5 standard does **not** perform these replacements. However, we are targetting the html5lib 0.95 tests, where they are still performed. Hence, conditionally enable them for now until we can bring the whole suite up to speed. --- src/parser.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/parser.c b/src/parser.c index e9d2fcba..a9b6eb5e 100644 --- a/src/parser.c +++ b/src/parser.c @@ -192,12 +192,14 @@ static const ReplacementEntry kSvgAttributeReplacements[] = { REPLACEMENT_ENTRY("baseprofile", "baseProfile"), REPLACEMENT_ENTRY("calcmode", "calcMode"), REPLACEMENT_ENTRY("clippathunits", "clipPathUnits"), - // REPLACEMENT_ENTRY("contentscripttype", "contentScriptType"), - // REPLACEMENT_ENTRY("contentstyletype", "contentStyleType"), +#ifndef GUMBO_HTML5_TIP + REPLACEMENT_ENTRY("contentscripttype", "contentScriptType"), + REPLACEMENT_ENTRY("contentstyletype", "contentStyleType"), + REPLACEMENT_ENTRY("externalresourcesrequired", "externalResourcesRequired"), + REPLACEMENT_ENTRY("filterres", "filterRes"), +#endif REPLACEMENT_ENTRY("diffuseconstant", "diffuseConstant"), REPLACEMENT_ENTRY("edgemode", "edgeMode"), - // REPLACEMENT_ENTRY("externalresourcesrequired", "externalResourcesRequired"), - // REPLACEMENT_ENTRY("filterres", "filterRes"), REPLACEMENT_ENTRY("filterunits", "filterUnits"), REPLACEMENT_ENTRY("glyphref", "glyphRef"), REPLACEMENT_ENTRY("gradienttransform", "gradientTransform"),