I'm having a strange issue where if I put an html snippet in a description area it seems to strip the id tag out...

an example is that I type:

img id="doodad" class="phpImage" alt="" src="/sites/default/files/images/yepyep.png" height="400" width="760"

but when I save it and then look at the source code in any browser (chrome, firefox, ie have all been tried) I get:

img class="phpImage" alt="" src="/sites/default/files/images/yepyep.png" height="400" width="760"

the id tag is just completely stripped out and I can't seem to figure out why. Is anyone else having this issue or know how to resolve this?

Comments

Forbid’s picture

nevermind, I figured out that for some reason HTML Purifier is stripping id tags which seems wrong unless there's something I don't know. I thought id was standards compliant?