mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-20 16:43:05 +03:00
added a new API to split a QName without generating any memory allocation
* tree.c include/libxml/tree.h: added a new API to split a QName without generating any memory allocation * valid.c: fixed another problem with namespaces on element in mixed content case * python/tests/reader2.py: updated the testcase with Bjorn Reese fix to reader for unsignificant white space * parser.c HTMLparser.c: cleanup. Daniel
This commit is contained in:
@ -63,17 +63,17 @@ s = """
|
||||
"""
|
||||
expect="""10,test
|
||||
1,test
|
||||
3,#text
|
||||
14,#text
|
||||
1,x
|
||||
1,c
|
||||
3,#text
|
||||
15,c
|
||||
15,x
|
||||
3,#text
|
||||
14,#text
|
||||
1,b
|
||||
3,#text
|
||||
15,b
|
||||
3,#text
|
||||
14,#text
|
||||
15,test
|
||||
"""
|
||||
res=""
|
||||
@ -113,11 +113,11 @@ s = """<!DOCTYPE test [
|
||||
tst_ent = """<x>hello</x>"""
|
||||
expect="""10 test
|
||||
1 test
|
||||
3 #text
|
||||
14 #text
|
||||
1 x
|
||||
3 #text
|
||||
15 x
|
||||
3 #text
|
||||
14 #text
|
||||
15 test
|
||||
"""
|
||||
res=""
|
||||
@ -165,19 +165,19 @@ s = """<!DOCTYPE test [
|
||||
</test>"""
|
||||
expect="""10 test 0
|
||||
1 test 0
|
||||
3 #text 1
|
||||
14 #text 1
|
||||
1 x 1
|
||||
1 y 2
|
||||
3 #text 3
|
||||
15 y 2
|
||||
15 x 1
|
||||
3 #text 1
|
||||
14 #text 1
|
||||
1 x 1
|
||||
1 y 2
|
||||
3 #text 3
|
||||
15 y 2
|
||||
15 x 1
|
||||
3 #text 1
|
||||
14 #text 1
|
||||
15 test 0
|
||||
"""
|
||||
res=""
|
||||
@ -218,11 +218,11 @@ s = """<!DOCTYPE test [
|
||||
</test>"""
|
||||
expect="""10 test 0
|
||||
1 test 0
|
||||
3 #text 1
|
||||
14 #text 1
|
||||
5 x 1
|
||||
3 #text 1
|
||||
14 #text 1
|
||||
5 x 1
|
||||
3 #text 1
|
||||
14 #text 1
|
||||
15 test 0
|
||||
"""
|
||||
res=""
|
||||
|
Reference in New Issue
Block a user