diff --git a/src/Data/HTML2CSS.hs b/src/Data/HTML2CSS.hs
--- a/src/Data/HTML2CSS.hs
+++ b/src/Data/HTML2CSS.hs
@@ -141,20 +141,21 @@
     | otherwise = []
 
 -- | Converts a xml-conduit Element to a stylist Element.
-elToStylish (XML.Element (XML.Name name _ _) attrs _) parent previous =
+elToStylish (XML.Element (XML.Name name ns _) attrs _) parent previous =
     ElementNode {
         name = name,
+        namespace = fromMaybe "" ns,
         attributes = L.sort [
-            Attribute (XML.nameLocalName name) (Txt.unpack value)
-            | (name, value) <- M.toList attrs
+            Attribute name (fromMaybe "" ns) (Txt.unpack value)
+            | (XML.Name name ns _, value) <- M.toList attrs
         ],
         parent = parent,
         previous = previous
     }
 addPsuedoclasses el psuedoclasses
-    | (Attribute "" value : attrs) <- attributes el = el {
-            attributes = Attribute "" (psuedoclasses ++ value) : attrs
+    | (Attribute "" "" value : attrs) <- attributes el = el {
+            attributes = Attribute "" "" (psuedoclasses ++ value) : attrs
         }
     | otherwise = el {
-            attributes = Attribute "" psuedoclasses : attributes el
+            attributes = Attribute "" "" psuedoclasses : attributes el
         }
diff --git a/xml-conduit-stylist.cabal b/xml-conduit-stylist.cabal
--- a/xml-conduit-stylist.cabal
+++ b/xml-conduit-stylist.cabal
@@ -10,7 +10,7 @@
 -- PVP summary:      +-+------- breaking API changes
 --                   | | +----- non-breaking API additions
 --                   | | | +--- code changes with no API change
-version:             1.1.0.0
+version:             1.2.0.0
 
 -- A short (one-line) description of the package.
 synopsis:            Bridge between xml-conduit/html-conduit and stylist
@@ -19,7 +19,7 @@
 description:         Parses CSS from an HTML webpage and queries relevant properties for each element.
 
 -- URL for the project homepage or repository.
-homepage:            https://git.nzoss.org.nz/alcinnz/stylish-haskell
+homepage:            https://git.adrian.geek.nz/haskell-stylist.git
 
 -- The license under which the package is released.
 license:             MIT
@@ -61,7 +61,7 @@
   
   -- Other library packages from which modules are imported.
   build-depends:       base >=4.9 && <4.10,
-                       stylist >=1.2.0 && <2, css-syntax, unordered-containers,
+                       stylist >=2 && <3, css-syntax, unordered-containers,
                        xml-conduit >=1.8 && < 1.9, text, containers,
                        network-uri
   
