| 77 |
return ''; |
return ''; |
| 78 |
}); |
}); |
| 79 |
if (token) return token; |
if (token) return token; |
| 80 |
|
var m; |
| 81 |
|
if ((p.insertionPoint < '</script'.length) && |
| 82 |
|
(m = i.s.match (/^<\/([SCRIPTscript]+)/))) { |
| 83 |
|
var v = m[1].substring (0, p.insertionPoint).toLowerCase (); |
| 84 |
|
if (v == 'script'.substring (0, p.insertionPoint - '</'.length)) { |
| 85 |
|
return {type: 'abort'}; |
| 86 |
|
} |
| 87 |
|
} |
| 88 |
i.s = i.s.replace (/^</, |
i.s = i.s.replace (/^</, |
| 89 |
function (s) { |
function (s) { |
| 90 |
token = {type: 'char', value: s}; |
token = {type: 'char', value: s}; |
| 96 |
} |
} |
| 97 |
|
|
| 98 |
var token; |
var token; |
| 99 |
i.s = i.s.replace (/^<\/([^>]+)>/, function (s, e) { |
i.s = i.s.replace (/^<\/([^>]+)(?:>|$)/, function (s, e) { |
| 100 |
if (p.insertionPoint < s.length) { |
if (p.insertionPoint < s.length || |
| 101 |
|
(p.insertionPoint <= s.length && |
| 102 |
|
s.substring (s.length - 1, 1) != '>')) { |
| 103 |
token = {type: 'abort'}; |
token = {type: 'abort'}; |
| 104 |
return s; |
return s; |
| 105 |
} |
} |
| 108 |
return ''; |
return ''; |
| 109 |
}); |
}); |
| 110 |
if (token) return token; |
if (token) return token; |
| 111 |
i.s = i.s.replace (/^<([^>]+)>/, function (s, e) { |
i.s = i.s.replace (/^<([^>]+)(?:>|$)/, function (s, e) { |
| 112 |
if (p.insertionPoint < s.length) { |
if (p.insertionPoint < s.length || |
| 113 |
|
(p.insertionPoint <= s.length && |
| 114 |
|
s.substring (s.length - 1, 1) != '>')) { |
| 115 |
token = {type: 'abort'}; |
token = {type: 'abort'}; |
| 116 |
return s; |
return s; |
| 117 |
} |
} |
| 224 |
this.openElements[this.openElements.length - 1].appendChild (el); |
this.openElements[this.openElements.length - 1].appendChild (el); |
| 225 |
|
|
| 226 |
// 11. Let the insertion point have the value of the old ... |
// 11. Let the insertion point have the value of the old ... |
| 227 |
|
oldInsertionPoint += this.insertionPoint; |
| 228 |
this.setInsertionPoint (oldInsertionPoint); |
this.setInsertionPoint (oldInsertionPoint); |
| 229 |
|
|
| 230 |
// 12. If there is a script that will execute as soon as ... |
// 12. If there is a script that will execute as soon as ... |