2009.05.04 07:12:52 (*.34.227.144)
7,806
| 상태 |
|---|
언젠가 대한민국 헌법으로 글 테스트를 하신적이 있으시지요?
그렇게 긴 문서를 쓰고(붙여넣기도 같음) 등록을 하면 과도한 스크립트의 사용으로 브라우저가 응답하지 않을 수 있습니다.'라는 경고창이 뜨게 되고, 무시하고 처리를 계속하라고 해도 연이어 경고창이 뜨면서 결국 스크립트를 취소해야 하는 에러가 발생하는데
백성찬님홈에서는 어떠신지 테스트해보신적이 있으신가요?
최근 수정일 : 2009-05-05 02:25:39 - 감로수
글 작성한 곳 :
2009.05.05 02:23:26 (*.34.227.144)
| sandbox/addons/autolink/autolink.js | ||
|---|---|---|
| 6255 | 6256 | |
| 11 | 11 | if(!pObj) continue; |
| 12 | 12 | |
| 13 | 13 | var pN = pObj.nodeName.toLowerCase(); |
| 14 | if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'option', 'code']) != -1) continue; | |
| 14 | if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'select', 'option', 'code', 'script', 'style']) != -1) continue; | |
| 15 | 15 | |
| 16 | 16 | if(obj.nodeType == 3 && obj.length >= 10) { |
| 17 | 17 | var content = obj.nodeValue; |
| 18 | if(!url_regx.test(content)) continue; | |
| 18 | if(!/(http|https|ftp|news|telnet|irc):\/\//i.test(content)) continue; | |
| 19 | 19 | |
| 20 | 20 | content = content.replace(/</g, '<'); |
| 21 | 21 | content = content.replace(/>/g, '>'); |
| ... | ... | |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | $('.xe_content').each(function() { |
| 34 | if(url_regx.test($(this).text())) replaceHrefLink(this); | |
| 34 | replaceHrefLink(this); | |
| 35 | 35 | }); |
| 36 | 36 | }); |
| 37 | 37 | |