I've been working to add database stored images to my site however I couldn't find an AJAX solution for uploading files (there is a files draft that will in the years to come be able to be used in conjunction with XMLHttpRequest2) so I've been forced to either use an iframe or Flash.
Since my site is served as XHTML 1.1 in XHTML capable browsers (XHTML 1.0 Strict in non-XHTML capable browsers) naturally encountered the whole anti-frame mentality that was enforced by people in XHTML 1.1 and 1.0 Strict however that's okay because we can add support right back to it.
The only problem is that I'm stuck on the document type does not allow element "iframe" here
validation issue however with the following doctype modifications I've been able to resolve the attribute validation errors for the iframe element.
This is the second time I've been forced to modify a doctype. This first set of code allows the border attribute on the frameset element which is the only
way to remove borders while using frames...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" [<!ATTLIST frameset border CDATA #IMPLIED>]>
Below is the modified doctype, Safari was the most helpful browser when testing. I've attempted to redeclare the body and divisible elements allowing the iframe however the validator spawned errors so that was a no-go. Thoughts please?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<!ENTITY % special.extra "iframe">
<!ELEMENT iframe EMPTY>
<!ATTLIST iframe border CDATA #IMPLIED
frameborder (0|1) "0"
id ID #IMPLIED
onfocus CDATA #IMPLIED
scrolling (yes|no|auto) "auto"
src CDATA #REQUIRED
style CDATA #IMPLIED
tabindex CDATA #IMPLIED>