                     return
                 }
                 
-                strongSelf.applyStyles(from: attrs, spanning: range)
+                strongSelf.applyStyles(from: attrs, to: range)
             }
         }
         
         // MARK: - Styles: Synchronization with DOM
         
-        private func applyStyles(from attributes: [String : AnyObject], spanning range: NSRange) {
+        /// Applies all styles from the specified attributes to the specified range in the DOM.
+        ///
+        /// - Parameters:
+        ///     - attributes: the `NSAttributedString` attributes to apply.
+        ///     - range: the range to apply those styles to.
+        ///
+        private func applyStyles(from attributes: [String : AnyObject], to range: NSRange) {
             for (key, value) in attributes {
                 switch (key) {
                 case NSAttachmentAttributeName:
-                    applyStyle(attachmentValue: value, spanning: range)
+                    applyStyle(attachmentValue: value, to: range)
                 case NSFontAttributeName:
-                    applyStyle(fontValue: value, spanning: range)
+                    applyStyle(fontValue: value, to: range)
                 case NSLinkAttributeName:
-                    applyStyle(linkValue: value, spanning: range)
+                    applyStyle(linkValue: value, to: range)
                 case NSStrikethroughStyleAttributeName:
-                    applyStyle(strikethroughValue: value, spanning: range)
+                    applyStyle(strikethroughValue: value, to: range)
                 case NSUnderlineStyleAttributeName:
-                    applyStyle(underlineValue: value, spanning: range)
+                    applyStyle(underlineValue: value, to: range)
                 default:
                     break
                 }
             }
         }
         
-        /// Applies all styles from the specified attributed string and range to the DOM.
+        /// Applies all styles from the specified attributed string to the specified range in the
+        /// DOM.
         ///
         /// - Parameters:
         ///     - attributedString: the string to get the attributes form.
-        ///     - range: the range from which to take the styles to copy.
-        ///
-        private func applyStyles(from attributedString: NSAttributedString, spanning range: NSRange) {
+        ///     - location: the location where the attributes from the string must be applied.
+        ///
+        private func applyStyles(from attributedString: NSAttributedString, to location: Int) {
             
             let options = NSAttributedStringEnumerationOptions(rawValue: 0)
             let sourceRange = NSRange(location: 0, length: attributedString.length)
             
             attributedString.enumerateAttributesInRange(sourceRange, options: options) { (attributes, sourceSubrange, stop) in
                 
-                let subrangeWithOffset = NSRange(location: range.location, length: sourceSubrange.length)
-                applyStyles(from: attributes, spanning: subrangeWithOffset)
+                let subrangeWithOffset = NSRange(location: location, length: sourceSubrange.length)
+                applyStyles(from: attributes, to: subrangeWithOffset)
             }
         }
         

        ///
        /// - Parameters:
        ///     - linkURL: the URL to set for the link.
        ///     - range: the range the attribute is spanning.
        ///
        private func applyStyle(linkURL: NSURL, spanning range: NSRange) {
            setLinkInDOM(range, url: linkURL)
        }
    

                        return
                }
                
                applyStyle(urlValue, to: range)
            }
        }
        
