Images breaking with a space

Last post 09-29-2011, 7:21 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  09-28-2011, 6:18 PM 70229

    Images breaking with a space

    Is this the intended behavior of the img tag?
     
    This is reproducable in the demo.
     
    Steps to reproduce.
     
    Take an image link to a valid image. Make sure it works. In HTML mode add a space between the < and img "< img" as opposed to "<img". Go to the normal view. The image will be broken and display the link as text. Go back to HTML mode and the leading < and closing > will be replace with their ascii codes.
     
    Example below:
     
    HTML:
    <img alt="" src="http://2.bp.blogspot.com/-XnIJZV7ZKh4/Te8KJmpEANI/AAAAAAAABFw/yXri-oe39KQ/s1600/Funny+Pictures+of+animals+2.jpg" height="487" width="500" />
     
    ACTUAL:
     
    HTML:
    < img alt="" src="http://2.bp.blogspot.com/-XnIJZV7ZKh4/Te8KJmpEANI/AAAAAAAABFw/yXri-oe39KQ/s1600/Funny+Pictures+of+animals+2.jpg" height="487" width="500" /> 
     
    which gets converted to this:
     
    &lt; img alt="" src="http://2.bp.blogspot.com/-XnIJZV7ZKh4/Te8KJmpEANI/AAAAAAAABFw/yXri-oe39KQ/s1600/Funny+Pictures+of+animals+2.jpg" height="487" width="500" /&gt; 
     
    ACTUAL:
    < img alt="" src="http://2.bp.blogspot.com/-XnIJZV7ZKh4/Te8KJmpEANI/AAAAAAAABFw/yXri-oe39KQ/s1600/Funny+Pictures+of+animals+2.jpg" height="487" width="500" />
     
     
  •  09-29-2011, 7:21 AM 70232 in reply to 70229

    Re: Images breaking with a space

    Hi MasterShadow,
     
    For security reason, if symbol "<" and ">" is not the html target, must encoding it. It is by design.
     
    Regards,
     
    Ken
View as RSS news feed in XML