Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
HTML.Editing 
Affected versions
Fixed in
Fixed in build
Next build 
Build
4155
Fixed in build
4161
Severity
0
  • Submitted by   Thomas Singer
    3 years ago (01 Mar 2006 13:26)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:27)
  • Jira: IDEA-31572
    (history, comments)

IDEA-31572

Although the HTML-inspection "Check Image Size" is selected, random width or height attributes can be given without a warning

0
Added by <no user>
16 Sep 2009
main-window_small.gif   (11 KB)

Ctrl-clicking at the image's src-path opens the image in a separate tab, so the Images plug-in is installed correctly. But I can enter any number in the width or height attribute without getting a warning.

Issue was resolved
Comments (7)
 
History (1)
 
Links
 
Maxim Mossienko
  Maxim Mossienko
01 Mar 2006 14:36
(3 years ago)
#permalink
We are not decoding image ourself, rather using ImageIO, if it fails for particular image then no check is performed. Could you, please, attach the image file?
Maxim Mossienko
  Maxim Mossienko
01 Mar 2006 15:48
(3 years ago)
#permalink
Thank you, does the 'img' element used outside root element?
Maxim Mossienko
  Maxim Mossienko
01 Mar 2006 16:24
(3 years ago)
#permalink
Please, check that image height/size problem is detected when img is under root tag.
Thomas Singer
  Thomas Singer
01 Mar 2006 16:49
(3 years ago)
#permalink
Hmm, do I understand you right:

In 4155 it does only work, when the jsp file is a valid html file and not, as in my case, where the outer tags (html, body, ...) are generated by scriptlets. You fixed that, so the upcoming 4161 version also support that in my case?
Maxim Mossienko
  Maxim Mossienko
01 Mar 2006 17:06
(3 years ago)
#permalink
To be sure that your problem is fixed please put img tag to the beginning of the jsp file, the width/height problem should be detected.
The problem is fixed in 5.1.1
Thomas Singer
  Thomas Singer
01 Mar 2006 17:30
(3 years ago)
#permalink
Yes, when I copy the {{<img src="...">}} line to the top of the line, different widths and heights are detected.
Thomas Singer
  Thomas Singer
01 Mar 2006 17:31
(3 years ago)
#permalink
Of course, I meant "top of the file".