[librsvg: 1/4] Use the xml namespace for the xml:lang and xml:space attributes



commit 5f752dfeba1a199da186de500961b9f94e1e5973
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Dec 12 18:08:57 2019 -0600

    Use the xml namespace for the xml:lang and xml:space attributes

 rsvg_internals/src/properties.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/properties.rs b/rsvg_internals/src/properties.rs
index 9fdcd471..8a34c7af 100644
--- a/rsvg_internals/src/properties.rs
+++ b/rsvg_internals/src/properties.rs
@@ -613,14 +613,14 @@ impl SpecifiedValues {
     ) -> Result<(), NodeError> {
         for (attr, value) in pbag.iter() {
             match attr.expanded() {
-                expanded_name!(svg "xml:lang") => {
+                expanded_name!(xml "lang") => {
                     // xml:lang is a non-presentation attribute and as such cannot have the
                     // "inherit" value.  So, we don't call parse_one_presentation_attribute()
                     // for it, but rather call its parser directly.
                     self.xml_lang = SpecifiedValue::Specified(attr.parse(value)?);
                 }
 
-                expanded_name!(svg "xml:space") => {
+                expanded_name!(xml "space") => {
                     // xml:space is a non-presentation attribute and as such cannot have the
                     // "inherit" value.  So, we don't call parse_one_presentation_attribute()
                     // for it, but rather call its parser directly.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]