regular expression problem for IE
-
This happens only in Internet Explorer but the javascript function sendToEditor() in inline-uploading.php doesn’t execute well in IE, while FF processes it fine.
For example, this command
h = h.replace(new RegExp(' (class|title|width|height|id|onclick|onmousedown)=([^\'"][^ ]*)( |/|>)', 'g'), ' $1="$2"$3'); // Enclose attribs in quotes
will replace <div id=photoinlayer><img src=file.jpg …
as <div id=”photoinlayer”><img src=”file.jpg” … in Firefox but IE will produce
<div id=”photoinlayer><img” src=”file.jpg…So it appears that the conditions ([^\'”][^ ]*)( |/|>) aren’t working properly in IE.
Any ideas why?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘regular expression problem for IE’ is closed to new replies.