     render: ->
       (@props.wrapper
         className: @getClassName()
-        dangerouslySetInnerHTML: __html: @state.loadedText if @state.loadedText
+        dangerouslySetInnerHTML: __html: @processSVG(@state.loadedText) if @state.loadedText
         @renderContents()
       )
+    processSVG: (svgText) ->
+      if @props.uniquifyIDs then uniquifyIDs svgText, getComponentID this
+      else svgText
     renderContents: ->
       switch @state.status
         when Status.UNSUPPORTED then @props.children


isSupportedEnvironment = once ->
  (window?.XMLHttpRequest or window?.XDomainRequest) and supportsInlineSVG()


# Errors

      onLoad: PropTypes.func
      onError: PropTypes.func
      supportTest: PropTypes.func
      uniquifyIDs: PropTypes.bool
    getDefaultProps: ->
      wrapper: span
      supportTest: isSupportedEnvironment
      uniquifyIDs: true
    getInitialState: ->
      status: Status.PENDING
    componentDidMount: ->
