Changeset 1146


Ignore:
Timestamp:
12/30/08 19:18:54 (10 years ago)
Author:
nicholasbs
Message:

Fixes #1298 (CSS styling gets inserted into table cell after viewing source in Safari)

I have not yet made this change in Gecko.js and InternetExplorer?.js, since neither FF nor IE have this issue, even though they use the same regex. See ticket #1298 for details.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/WebKit/WebKit.js

    r1084 r1146  
    743743      } 
    744744      else ta.value = before + cc + after; 
    745       ta.value = ta.value.replace(new RegExp ('(&[^'+cc+']*?)('+cc+')([^'+cc+']*?;)'), "$1$3$2"); 
     745      ta.value = ta.value.replace(new RegExp ('(&[^'+cc+';]*?)('+cc+')([^'+cc+']*?;)'), "$1$3$2"); 
    746746      ta.value = ta.value.replace(new RegExp ('(<script[^>]*>[^'+cc+']*?)('+cc+')([^'+cc+']*?<\/script>)'), "$1$3$2"); 
    747747      ta.value = ta.value.replace(new RegExp ('^([^'+cc+']*)('+cc+')([^'+cc+']*<body[^>]*>)(.*?)'), "$1$3$2$4"); 
Note: See TracChangeset for help on using the changeset viewer.