Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit b55b638

Browse files
author
Vicent Marti
committed
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.
1 parent a74d295 commit b55b638

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/parser.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,14 @@ static const ReplacementEntry kSvgAttributeReplacements[] = {
192192
REPLACEMENT_ENTRY("baseprofile", "baseProfile"),
193193
REPLACEMENT_ENTRY("calcmode", "calcMode"),
194194
REPLACEMENT_ENTRY("clippathunits", "clipPathUnits"),
195-
// REPLACEMENT_ENTRY("contentscripttype", "contentScriptType"),
196-
// REPLACEMENT_ENTRY("contentstyletype", "contentStyleType"),
195+
#ifndef GUMBO_HTML5_TIP
196+
REPLACEMENT_ENTRY("contentscripttype", "contentScriptType"),
197+
REPLACEMENT_ENTRY("contentstyletype", "contentStyleType"),
198+
REPLACEMENT_ENTRY("externalresourcesrequired", "externalResourcesRequired"),
199+
REPLACEMENT_ENTRY("filterres", "filterRes"),
200+
#endif
197201
REPLACEMENT_ENTRY("diffuseconstant", "diffuseConstant"),
198202
REPLACEMENT_ENTRY("edgemode", "edgeMode"),
199-
// REPLACEMENT_ENTRY("externalresourcesrequired", "externalResourcesRequired"),
200-
// REPLACEMENT_ENTRY("filterres", "filterRes"),
201203
REPLACEMENT_ENTRY("filterunits", "filterUnits"),
202204
REPLACEMENT_ENTRY("glyphref", "glyphRef"),
203205
REPLACEMENT_ENTRY("gradienttransform", "gradientTransform"),

0 commit comments

Comments
 (0)