/[suikacvs]/test/html-webhacc/cc-script.js
Suika

Diff of /test/html-webhacc/cc-script.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by wakaba, Mon Mar 17 13:25:19 2008 UTC revision 1.5 by wakaba, Mon Jul 21 12:56:33 2008 UTC
# Line 10  function addSourceToParseErrorList (idPr Line 10  function addSourceToParseErrorList (idPr
10      var child = childs[i];      var child = childs[i];
11      if (child.nodeType != 1) continue;      if (child.nodeType != 1) continue;
12      if (child.nodeName == 'DT') {      if (child.nodeName == 'DT') {
13        var text = child.textContent || child.innerText;        line = parseInt (child.getAttribute ('data-line') || 0);
14        var m;        column = parseInt (child.getAttribute ('data-column') || 0);
       if (m = text.match (/Line (\d+)(?: column (\d+))?/)) {  
         line = parseInt (m[1]);  
         column = parseInt (m[2] || 0);  
       } else {  
         line = 0;  
         column = 0;  
       }  
15      } else if (child.nodeName == 'DD') {      } else if (child.nodeName == 'DD') {
16        if (line > 0) {        if (line > 0) {
17          var lineEl = document.getElementById (idPrefix + 'line-' + line);          var lineEl = document.getElementById (idPrefix + 'line-' + line);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24