Changes between Version 14 and Version 15 of JavaScript-XPath
- Timestamp:
- 11/14/07 17:36:28 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JavaScript-XPath
v14 v15 69 69 == Demo == 70 70 71 * Coming soon. 72 71 * Simple demo. 73 72 {{{ 74 73 #!js 75 74 //Executable 76 // -- First case -- 77 // Evaluate a XPath expression string 78 var result = document.evaluate('//h1', document, null, 7, null); 79 // Display the result 80 var h1 = result.snapshotItem(0); 81 alert(h1.innerHTML); // Hello, DOM 3 XPath! 75 var result = document.evaluate('//h1/node()[1]', document, null, 1, null); 76 alert(result.stringValue); // JavaScript-XPath 82 77 }}} 83 78
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)