From a7a0edd830de357a745e5f2feebf52524a03810d Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Fri, 18 May 2007 00:44:20 +0000 Subject: [PATCH] Make Prototype.ScriptFragment behave when including Prototype inline. --- CHANGELOG | 2 ++ src/prototype.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 8738abc..931fdf4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Make Prototype.ScriptFragment behave when including Prototype inline. [Christophe Porteneuve] + * Deprecate Position (kept for backwards compatibility). Add Element#cumulativeOffset, Element#positionedOffset, Element#absolutize, Element#relativize, Element#cumulativeScrollOffset, Element#getOffsetParent, Element#viewportOffset and Element#clonePosition. [Christophe Porteneuve] * Make Element#update and Element#insert work for SELECT tags in IE and Opera. [Tobie Langel] diff --git a/src/prototype.js b/src/prototype.js index 684b05d..b11be88 100644 --- a/src/prototype.js +++ b/src/prototype.js @@ -18,7 +18,7 @@ var Prototype = { document.createElement('form').__proto__) }, - ScriptFragment: ']*>([\u0001-\uFFFF]*?)', + ScriptFragment: ']*>([\u0001-\uFFFF]*?)<\/script>', JSONFilter: /^\/\*-secure-\s*(.*)\s*\*\/\s*$/, emptyFunction: function() { },