Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Spell fix.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | toXPath
Files: files | file ages | folders
SHA1: 94beb1bc996c9c18a53d22159103d268f3258f06
User & Date: rolf 2013-09-06 22:41:05
Context
2013-09-06
22:44
Added new option -legacy to the domNode cmd error msg text. check-in: e799d2e8c5 user: rolf tags: toXPath
22:41
Spell fix. check-in: 94beb1bc99 user: rolf tags: toXPath
22:36
Fixed toXPath, which didn't worked at all for namespaced nodes without a prefix and with namespaced nodes with prefix not for patholotical cases. Because the string result of the toXPath method changed even in cases, which did work there is a new option -legacy, that returns the old string value.The -legacy option will go away, in future clean ups, if it show. check-in: 1745c828bc user: rolf tags: toXPath
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tests/domNode.test.

3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
    set foo2 [$root selectNodes {foo:foo[2]}]
} -body {
    expr {$foo2 == [[$foo2 ownerDocument] selectNodes [$foo2 toXPath]]}
} -cleanup {
    $doc delete
} -result 1

test domNode0-38.7 {toXPath - phatological xml namespace} -setup {
    set doc [dom parse {
<root>
    <!-- comment -->
    <foo:foo xmlns:foo="foo"/>
    some text    
    <foo:foo xmlns:foo="bar"/>
    <?mypi data?>







|







3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
    set foo2 [$root selectNodes {foo:foo[2]}]
} -body {
    expr {$foo2 == [[$foo2 ownerDocument] selectNodes [$foo2 toXPath]]}
} -cleanup {
    $doc delete
} -result 1

test domNode0-38.7 {toXPath - pathological xml namespace} -setup {
    set doc [dom parse {
<root>
    <!-- comment -->
    <foo:foo xmlns:foo="foo"/>
    some text    
    <foo:foo xmlns:foo="bar"/>
    <?mypi data?>