Closed (won't fix)
Project:
Signwriter
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2007 at 22:04 UTC
Updated:
4 Sep 2008 at 06:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
agileware commentedI've added a call to htmlspecialchars for the image alt text to fix this in cvs.
Comment #2
decafdennis commentedPlease also change the single quotes to double quotes for consistency with the rest of Drupal (and the rest of the world for that matter).
Thanks!
Comment #3
wrunt commentedI don't really think that's necessary. Both types of quotes are allowed by the XML spec.
Comment #4
bobwaycott commentedI am attaching a patched signwriter.module file that fixes this issue for XHTML Strict validation. I have added in escaped quotes at the necessary line, which causes the XHTML validation to pass completely. No rendering issues occur.
If both types of quotes were allowed, this would pass XHTML Strict validation. I only work in XHTML Strict, so it is necessary to have the double quotes.
Thanks for a great module.
Comment #5
bobwaycott commentedSorry, after viewing the generated source, the
alttext shows up asalt=" ' ' "I have removed the single quote in favor of the standards-compliant double in this updated patch.
Generated source now shows:
alt=" "Passes XHTML 1.0 Strict validation.
Comment #6
bobwaycott commentedThe only issue I have is this module isn't generating the contents of
$textin the<img alt=" " />source either way. Having properalttext is necessary for accessibility.Any thoughts?
Comment #7
decafdennis commented@bobwaycott: If you want the module maintainer to look at this issue, you should change this issue's status back to active (I now did). Also try to provide patches instead of complete files, as described at Patches. If you post a patch, set the issue status to patch (code needs review).
I'm all in for changing all the single quotes in the generated (x)html to double quotes. Why be different?
Comment #8
agileware commentedThis has been fixed in the development version of the module and will be available in the next release.
Comment #9
agileware commentedI've changed it back out of principle.
Here is the XML specification for XHTML Strict.
[10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"
If you can read regular expressions, the specification clearly caters for both.