mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Tests for handling of whitespace inside tags.
2004-07-28 Matthias Clasen <mclasen@redhat.com> * tests/markups/valid-{9,10,11}.gmarkup: * tests/markups/fail-{37,38,39}.gmarkup: Tests for handling of whitespace inside tags. * glib/gmarkup.c (enum GMarkupParseState): Add STATE_AFTER_ATTRIBUTE_NAME and STATE_AFTER_CLOSE_TAG_NAME. (g_markup_parse_context_parse): Accept whitespace between attribute names, '=' and attribute values and between close tag name and '>'. (#148646, Hiroyuki Ikezoe)
This commit is contained in:
committed by
Matthias Clasen
parent
45e1212b68
commit
889096b1ea
1
tests/markups/fail-37.gmarkup
Normal file
1
tests/markups/fail-37.gmarkup
Normal file
@@ -0,0 +1 @@
|
||||
< foo>
|
1
tests/markups/fail-38.gmarkup
Normal file
1
tests/markups/fail-38.gmarkup
Normal file
@@ -0,0 +1 @@
|
||||
<foo>data< /foo>
|
1
tests/markups/fail-39.gmarkup
Normal file
1
tests/markups/fail-39.gmarkup
Normal file
@@ -0,0 +1 @@
|
||||
<foo>data</ foo>
|
6
tests/markups/valid-10.gmarkup
Normal file
6
tests/markups/valid-10.gmarkup
Normal file
@@ -0,0 +1,6 @@
|
||||
<foo
|
||||
bar="baz"
|
||||
bar2 = "baz2"
|
||||
bar3 =
|
||||
"baz3"
|
||||
>data</foo>
|
2
tests/markups/valid-11.gmarkup
Normal file
2
tests/markups/valid-11.gmarkup
Normal file
@@ -0,0 +1,2 @@
|
||||
<foo
|
||||
>data</foo>
|
2
tests/markups/valid-9.gmarkup
Normal file
2
tests/markups/valid-9.gmarkup
Normal file
@@ -0,0 +1,2 @@
|
||||
<foo>data</foo
|
||||
>
|
Reference in New Issue
Block a user