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:
parent
7eda8452f8
commit
1e851392fc
@ -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
7
TODO
@ -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)
|
||||
|
3
parser.c
3
parser.c
@ -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
24
result/noent/wap.xml
Normal 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
24
result/wap.xml
Normal 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
27
test/wap.xml
Normal 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="$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>
|
Loading…
x
Reference in New Issue
Block a user