[pango/test-coverage: 4/20] markup: Don't accept attributes on <markup>




commit a5bb5822d9ac78059dd045f74c64d54cd3b78e9c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 26 14:50:38 2021 -0400

    markup: Don't accept attributes on <markup>
    
    Better to enforce this.

 pango/pango-markup.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pango/pango-markup.c b/pango/pango-markup.c
index eb262980..38e908c5 100644
--- a/pango/pango-markup.c
+++ b/pango/pango-markup.c
@@ -1646,6 +1646,7 @@ markup_parse_func (MarkupData            *md G_GNUC_UNUSED,
                   GError               **error G_GNUC_UNUSED)
 {
   /* We don't do anything with this tag at the moment. */
+  CHECK_NO_ATTRS("markup");
 
   return TRUE;
 }


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