Closed Bug 782479 Opened 13 years ago Closed 13 years ago

Image dimensions are ignored (style attribute stripped)

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MattN, Unassigned)

References

()

Details

(Keywords: regression)

The WYSIWYG editor inserts a style attribute with width and height set for <img>. These are stripped when the page is displayed. What is the correct way to do this? The WYSIWYG editor should not insert markup that is not allowed. I believe this is a regression introduced by Kuma.
This was fixed long ago. I just edit/save the page to have all the styling taking into account. Note that we do accept width and height in the style attribute, but we also accept the align attribute on <img>, which is obsolete in HTML5 and even deprecated in HTML4.01. We really should fix these, but that's another bug (once we have a working find/replace tool)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.