Skip Menu |

This queue is for tickets about the HTML-Parser CPAN distribution.

Report information
The Basics
Id: 9742
Status: resolved
Priority: 0/
Queue: HTML-Parser

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: default set of encoded entities should include apos
In XML and HTML, both double and single quotes are acceptable for attribute quoting. Despite this, almost all entity encoders only encode " to quot, which means that when text is encoded and included as an attribute value in a template that uses ' to quote attribute values, quotes be easily tricked. While not using single-quote delimiters can help with this problem, I don't see a strong reason why ' shouldn't be quoted to apos by default to help prevent this problem.