public class SVGParserImpl extends Object
Constructor and Description |
---|
SVGParserImpl() |
Modifier and Type | Method and Description |
---|---|
protected static SVGSVGElement |
enableScriptElements(SVGSVGElement svg)
Re-enables scripts disabled by the DOMParser.parseFromString method.
|
static boolean |
isIE() |
SVGSVGElement |
parse(String rawSvg,
boolean enableScripts)
Parses the supplied SVG text into a document
|
com.google.gwt.dom.client.Document |
parseFromString(String rawText,
String contentType) |
SVGSVGElement |
parseIE(String rawSvg,
boolean enableScripts) |
public final com.google.gwt.dom.client.Document parseFromString(String rawText, String contentType)
public SVGSVGElement parse(String rawSvg, boolean enableScripts) throws ParserException
rawSvg
- raw xml to be parsedenableScripts
- true to enable embedded scripts, false otherwiseParserException
protected static SVGSVGElement enableScriptElements(SVGSVGElement svg)
svg
- The svg for which scripts are to be re-enabled.public static boolean isIE()
public final SVGSVGElement parseIE(String rawSvg, boolean enableScripts) throws ParserException
ParserException
Copyright © 2018. All Rights Reserved.