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:
Matthias Clasen
2004-07-28 15:00:59 +00:00
committed by Matthias Clasen
parent 45e1212b68
commit 889096b1ea
12 changed files with 198 additions and 115 deletions

View File

@@ -0,0 +1 @@
< foo>

View File

@@ -0,0 +1 @@
<foo>data< /foo>

View File

@@ -0,0 +1 @@
<foo>data</ foo>

View File

@@ -0,0 +1,6 @@
<foo
bar="baz"
bar2 = "baz2"
bar3 =
"baz3"
>data</foo>

View File

@@ -0,0 +1,2 @@
<foo
>data</foo>

View File

@@ -0,0 +1,2 @@
<foo>data</foo
>