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() { },