[webkit-dev] question about DOM implementation

allstars.chh allstars.chh at gmail.com
Thu May 27 00:49:30 PDT 2010


hi

in WebCore/dom/DOMImplementation.cpp

the member function
bool DOMImplementation::isTextMIMEType(const String& mimeType)

will regard all mime types starts with 'text/' as DOM
except for 'text/html', 'text/xml' and 'text/xsl'

but there are some mime types are not DOM
but starts with 'text/' as their mime type

such as  JAD of the midlet
http://en.wikipedia.org/wiki/JAD_(file_format)
mime type:text/vnd.sun.j2me.app-descriptor


but in this case , the JAD will be threated as a DOM and loaded by webkit
instead of triggering download procedure


so i would like to ask is this a bug in DOMImplementation here??

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20100527/af8bea86/attachment.html>


More information about the webkit-dev mailing list