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

Commit

Permalink
parser: Enable these SVG attribute replacements
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vmg committed Feb 16, 2015
1 parent a74d295 commit b55b638
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit b55b638

Please sign in to comment.