1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-27 18:50:07 +03:00

- parser.c test/wap.xml result/noent/wap.xml result/wap.xml:

Closed bug #27499, added to regression tests
- TODO: updated
Daniel
This commit is contained in:
Daniel Veillard 2000-10-15 10:02:56 +00:00
parent 7eda8452f8
commit 1e851392fc
6 changed files with 86 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Sun Oct 15 12:00:24 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* parser.c test/wap.xml result/noent/wap.xml result/wap.xml:
Closed bug #27499, added to regression tests
* TODO: updated
Sun Oct 15 01:34:37 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* HTMLparser.c HTMLtree.[ch] SAX.c testHTML.c tree.c: fixed HTML

7
TODO
View File

@ -30,9 +30,6 @@ TODO:
- jamesh suggestion: SAX like functions to save a document ie. call a
function to open a new element with given attributes, write character
data, close last element, etc
- HTML: handling of Script data elements/attributes, need special code in
the parser and saving functions (handling of < > " ' ...):
http://www.w3.org/TR/html4/types.html#type-script
TODO:
=====
@ -98,6 +95,10 @@ EXTENSIONS:
Done:
=====
- HTML: handling of Script and style data elements, need special code in
the parser and saving functions (handling of < > " ' ...):
http://www.w3.org/TR/html4/types.html#type-script
Attributes are no problems since entities are accepted.
- DOM needs
xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
- problem when parsing hrefs with & with the HTML parser (IRC ac)

View File

@ -2077,8 +2077,7 @@ xmlParseAttValue(xmlParserCtxtPtr ctxt) {
buf[len++] = *current++;
}
} else {
COPY_BUF(l,buf,len,val);
NEXTL(l);
len += xmlCopyChar(0, &buf[len], val);
}
} else if (c == '&') {
ent = xmlParseEntityRef(ctxt);

24
result/noent/wap.xml Normal file
View File

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://dark.wapit.com/vswap/tests/wap/DTD/wml11.dtd">
<!-- (C) 1999, 2000 WAP Forum Ltd. All rights reserved -->
<wml>
<card id="card1">
<onevent type="onenterforward">
<go href="/vswap/run/result.eml">
<postfield name="var" value="$test"/>
<postfield name="v" value="dark"/>
<postfield name="ts" value="0003"/>
<postfield name="tp" value="wml/state/variables/parsing/1"/>
<postfield name="ti" value="1"/>
<postfield name="expected" value="var:pass"/>
</go>
</onevent>
<p>If automatic testing failed, select <anchor>Failed<go href="/vswap/run/result.eml">
<postfield name="SUBMIT" value="No"/><postfield name="v" value="dark"/>
<postfield name="ts" value="0003"/>
<postfield name="tp" value="wml/state/variables/parsing/1"/>
<postfield name="ti" value="1"/>
<postfield name="expected" value="var:pass"/></go></anchor>.</p>
</card>
</wml>

24
result/wap.xml Normal file
View File

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://dark.wapit.com/vswap/tests/wap/DTD/wml11.dtd">
<!-- (C) 1999, 2000 WAP Forum Ltd. All rights reserved -->
<wml>
<card id="card1">
<onevent type="onenterforward">
<go href="/vswap/run/result.eml">
<postfield name="var" value="$test"/>
<postfield name="v" value="dark"/>
<postfield name="ts" value="0003"/>
<postfield name="tp" value="wml/state/variables/parsing/1"/>
<postfield name="ti" value="1"/>
<postfield name="expected" value="var:pass"/>
</go>
</onevent>
<p>If automatic testing failed, select <anchor>Failed<go href="/vswap/run/result.eml">
<postfield name="SUBMIT" value="No"/><postfield name="v" value="dark"/>
<postfield name="ts" value="0003"/>
<postfield name="tp" value="wml/state/variables/parsing/1"/>
<postfield name="ti" value="1"/>
<postfield name="expected" value="var:pass"/></go></anchor>.</p>
</card>
</wml>

27
test/wap.xml Normal file
View File

@ -0,0 +1,27 @@
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://dark.wapit.com/vswap/tests/wap/DTD/wml11.dtd">
<!-- (C) 1999, 2000 WAP Forum Ltd. All rights reserved -->
<wml>
<card id="card1">
<onevent type="onenterforward">
<go href="/vswap/run/result.eml">
<postfield name="var" value="&#36;test"/>
<postfield name="v" value="dark"/>
<postfield name="ts" value="0003"/>
<postfield name="tp" value="wml/state/variables/parsing/1"/>
<postfield name="ti" value="1"/>
<postfield name="expected" value="var:pass"/>
</go>
</onevent>
<p>If automatic testing failed, select <anchor>Failed<go
href='/vswap/run/result.eml'>
<postfield name="SUBMIT" value="No"/><postfield name="v"
value="dark"/>
<postfield name="ts" value="0003"/>
<postfield name="tp" value="wml/state/variables/parsing/1"/>
<postfield name="ti" value="1"/>
<postfield name="expected" value="var:pass"/></go></anchor>.</p>
</card>
</wml>