| | 132 | // In certain browsers (*cough* firefox) the dom node loses |
| | 133 | // information if the image is currently broken. In order to prevent |
| | 134 | // corrupting the height and width of image tags, we strip height and |
| | 135 | // width from the image rather than reporting bad information. |
| | 136 | if (Xinha.is_real_gecko && (root.tagName.toLowerCase() == 'img') && |
| | 137 | ((a.nodeName.toLowerCase() == 'height') || (a.nodeName.toLowerCase() == 'width'))) |
| | 138 | { |
| | 139 | if (!root.complete || root.naturalWidth === 0) |
| | 140 | { |
| | 141 | // This means that firefox has been unable to read the dimensions from the actual image |
| | 142 | continue; |
| | 143 | } |
| | 144 | } |