Ticket #1245 (new defect)
it' not possible to enter percent values to height or width attributes of images
| Reported by: | guest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.97 |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
1) insert an image with the "Insert/Modify Image" button.
2) switch to the source view
3) add width and/or height attributes to the image tag with percent values e.g.: <img src="http://www.google.at/intl/de_at/images/logo.gif" alt="google test" width="50%" />
4) swtich back to the wysiwyg view 5) again, switch to the source view
Now the with of the image is an absolute pixle value, in the above case something like: <img width="436" alt="google test" src="http://www.google.at/intl/de_at/images/logo.gif" />
The Problem seems to be in the modules/GetHtml/DOMwalk.js file. In this file the line value = root[a.nodeName]; is used to read the value of the width value, and root[a.nodeName] returns the absolute pixle value.
value = a.nodeValue; would return the correct % value.
