﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blockedby,blocking 2035,"""clean"" RegExp fails in Safari 412",ajpotts,,"This line {{{elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){...}}} will fail in Safari 2.0 build 412 (and presumably before). Safari doesn't see the end of the regex at all, and so pretty much everything goes wrong. Quick fix: {{{elem = elem.replace(new RegExp(""(<(\w+)[^>]*?)\/>""), function(all, front, tag){ ...}}} Obviously early Safari has a problem with parsing RegExps in the /.../g style, but I haven't found any other problems yet. ",bug,closed,major,1.2.4,core,1.2.1,wontfix,,,,