[Bug 5285] Validator ignores "xml-stylesheet" PI in XHTML 1.0/1.1 where's no link element

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5285





--- Comment #3 from William F. McCaw <william@mcsquawk.org.uk>  2009-05-15 17:58:57 ---
Created an attachment (id=698)
 --> (http://www.w3.org/Bugs/Public/attachment.cgi?id=698)
Proposed patch for this issue.

I also encountered this problem whilst attempting to validate a site I'm
building (XHTML 1.1, application/xhtml+xml and xml-stylesheet PIs) using
both the online validator, and the development version from CVS run from
the command line.

This patch makes the following change to the processingInstruction methods
of both the TagSoupStyleSheetHandler and the XMLStyleSheetHandler classes
within the org.w3c.css.css package.

* The local "mt" variable is assigned the MimeType instance created from
  the "type" pseudo-attribute of the xml-stylesheet PI.

Without this change, the validator does not see the specified URI as
referencing a CSS stylesheet, and so ignores it.

Best regards,
William F. McCaw.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 15 May 2009 17:59:11 UTC