[Webkit-unassigned] [Bug 35207] all xhtml documents fail to render when XHTMLMP enabled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 21 00:01:23 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35207


Charles Wei <charles.wei at torchmobile.com.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49145|                            |review?
               Flag|                            |




--- Comment #1 from Charles Wei <charles.wei at torchmobile.com.cn>  2010-02-21 00:01:23 PST ---
Created an attachment (id=49145)
 --> (https://bugs.webkit.org/attachment.cgi?id=49145)
fix patch

When the XHTMLMP is enabled, the author added one member function to class
Document to decide if the document is of XHTMLMP type, and they later on in the
tokenizer, it validates if the right Doctype is declared for xhtml-mp document.

The right MIME type for XHTMLMP is "application/vnd.wap.xhtml+xml",  while in
the new member function isXHTMLMPDocument() of Document,  it returns true for
both "application/vnd.wap.xhtml+xml" and "application/xhtml+xml".  In the
Tokenizer, it trys to validate that the XHTMLDocument contains the right DTD
declaration and public ID ("//WAPFORUM/DTD XHTML Mobile 1.0"),  sure it fails
for all the XHTML (non-MP) documents.

Ths fix for this bug is only documents with MIME type
"application/wap.vnd.xhtml+xml" will be treated as XHTMLMP documents;   MIME
type "application/xhtml+xml" is for XHTML documents.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list