equal
deleted
inserted
replaced
121 doc.close(); |
121 doc.close(); |
122 |
122 |
123 // Parse xml and doctype |
123 // Parse xml and doctype |
124 xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); |
124 xmlVer = getReItem(/<\?\s*?xml.*?version\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); |
125 xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); |
125 xmlEnc = getReItem(/<\?\s*?xml.*?encoding\s*?=\s*?"(.*?)".*?\?>/gi, h, 1); |
126 docType = getReItem(/<\!DOCTYPE.*?>/gi, h, 0); |
126 docType = getReItem(/<\!DOCTYPE.*?>/gi, h.replace(/\n/g, ''), 0).replace(/ +/g, ' '); |
127 f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1); |
127 f.langcode.value = getReItem(/lang="(.*?)"/gi, h, 1); |
128 |
128 |
129 // Parse title |
129 // Parse title |
130 if (e = doc.getElementsByTagName('title')[0]) |
130 if (e = doc.getElementsByTagName('title')[0]) |
131 el.metatitle.value = e.textContent || e.text; |
131 el.metatitle.value = e.textContent || e.text; |